todo: fix TodoList table column widths
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -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} />,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user