Merge pull request #7049 from backstage/rugvip/todo

todo: fix TodoList table column widths
This commit is contained in:
Patrik Oldsberg
2021-09-02 18:32:21 +02:00
committed by GitHub
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} />,
},
];