todo: fix TodoList table column widths

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-09-02 17:19:30 +02:00
parent fec8900399
commit a3734ba27d
2 changed files with 9 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-todo': patch
---
Fix TodoList table column widths
@@ -34,19 +34,20 @@ const columns: TableColumn<TodoItem>[] = [
{
title: 'Tag',
field: 'tag',
width: '10%',
filtering: false,
},
{
title: 'Text',
field: 'text',
width: '100%',
width: '55%',
highlight: true,
render: ({ text }) => <OverflowTooltip text={text} />,
},
{
title: 'File',
field: 'repoFilePath',
width: '80%',
width: '25%',
render: ({ viewUrl, repoFilePath }) =>
viewUrl ? (
<Link to={viewUrl} target="_blank">
@@ -59,7 +60,7 @@ const columns: TableColumn<TodoItem>[] = [
{
title: 'Author',
field: 'author',
width: '20%',
width: '10%',
render: ({ author }) => <OverflowTooltip text={author} />,
},
];