mirror of
https://github.com/discourse/discourse-table-builder.git
synced 2025-02-16 16:34:41 +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) => {
|
const columns = headings.map((heading) => {
|
||||||
return {
|
return {
|
||||||
title: heading,
|
title: heading,
|
||||||
width: "100", // TODO make based on string length?
|
width: heading.length * 15,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user