mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2025-07-07 15:52:21 +00:00
FEATURE: Column width dynamically set based on heading length
This commit is contained in:
parent
05cd2ada7e
commit
4bbb3a9647
@ -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,
|
||||
};
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user