From 4bbb3a9647fe1b87a8c5fc51c5e57412fa9949fe Mon Sep 17 00:00:00 2001 From: Keegan George Date: Thu, 14 Jul 2022 10:05:27 -0700 Subject: [PATCH] FEATURE: Column width dynamically set based on heading length --- javascripts/discourse/components/spreadsheet-editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascripts/discourse/components/spreadsheet-editor.js b/javascripts/discourse/components/spreadsheet-editor.js index 3a85dbe..abd174a 100644 --- a/javascripts/discourse/components/spreadsheet-editor.js +++ b/javascripts/discourse/components/spreadsheet-editor.js @@ -38,7 +38,7 @@ export default Component.extend({ const columns = headings.map((heading) => { return { title: heading, - width: "100", // TODO make based on string length? + width: heading.length * 15, }; });