fix: admin/plugins: unwanted "installedVersion" box in details dialog

Massimo Melina committed Mar 14, 2025 at 15:17 UTC ae0c386e2632ccd84f22c1b724fe4e9ae4a48e75
2 files changed +3 -2
admin/src/DataTable.ts
+2 -2
@@ -187,9 +187,9 @@ export function DataTable({ columns, initialState={}, actions, actionsProps, ini
187 minWidth: 'max(16em, 40vw)',
188 sx: { opacity: curRow ? undefined : .5 },
189 }, showInDialog.map(col =>
190 - h(Box, { key: col.field, gridColumn: col.flex && '1/-1' },
190 + h(Box, { key: col.field, gridColumn: col.flex! >= 1 ? '1/-1' : undefined },
191 h(Box, { bgcolor: '#0003', p: 1 }, col.headerName || col.field),
192 - h(Flex, { minHeight: '2.5em', px: 1, wordBreak: 'break-word' },
192 + h(Flex, { minHeight: '2.5em', px: 1, wordBreak: 'break-word', flexWrap: 'wrap' },
193 renderCell(col, rowToShow) )
194 ) ))
195 }
admin/src/InstalledPlugins.ts
+1
@@ -65,6 +65,7 @@ export default function InstalledPlugins({ updates }: { updates?: true }) {
65 {
66 field: 'installedVersion',
67 hidden: true,
68 + dialogHidden: true,
69 renderCell: ({ value }) => value && `Yours ${value}`
70 },
71 {