fix: admin/home: bad layout on firefox
Massimo Melina committed
Nov 11, 2024 at 23:39 UTC
11149f18eedabf26ffeb21c8c5783b528bee4b81
1 file changed
+5
-3
admin/src/HomePage.ts
+5
-3
@@ -95,9 +95,10 @@ export default function HomePage() {
95
!updates && with_(status.autoCheckUpdateResult, x => x?.isNewer && h(Update, { info: x, bodyCollapsed: true, title: "An update has been found" })),
96
pluginUpdates.length > 0 && entry('success', "Updates available for plugin(s): " + pluginUpdates.map(p => p.id).join(', ')),
97
h(ConfigForm, {
98
- gridProps: { sx: { columns: '13em 3', gap: 0, display: 'block', mt: 0, '&>div.MuiGrid-item': { pt: 0 }, '.MuiCheckbox-root': { pl: '2px' } } },
98
+ gridProps: { sx: { columns: '15em 3', gap: 0, display: 'block', mt: 0, '&>div.MuiGrid-item': { pt: 0 }, '.MuiCheckbox-root': { pl: '2px' } } },
99
saveOnChange: true,
100
- form: { fields: [
100
+ form: {
101
+ fields: [
102
status.updatePossible === 'local' ? h(Btn, { icon: UpdateIcon, onClick: () => update() }, "Update from local file")
103
: !updates && h(Btn, {
104
variant: 'outlined',
@@ -119,7 +120,8 @@ export default function HomePage() {
120
}, "Check for updates"),
121
{ k: 'auto_check_update', comp: CheckboxField, label: "Auto check updates daily" },
122
{ k: 'update_to_beta', comp: CheckboxField, label: "Include beta versions" },
122
- ] }
123
+ ]
124
+ }
125
}),
126
updates && with_(_.find(updates, 'isNewer'), newer => h(Fragment, {},
127
!updates.length || !status.updatePossible && !newer ? entry('', "No update available")