@samitouri / QOSami-HFS / commits / 26c6afae

admin/home: animated switch-theme

Massimo Melina committed Jul 8, 2024 at 10:57 UTC 26c6afae2b239443cb7e40f1ab0939bbc51c2803
1 file changed +3 -1
admin/src/App.ts
+3 -1
@@ -35,7 +35,9 @@ function App() {
35 function ApplyTheme(props:any) {
36 return h(Box, {
37 sx: { bgcolor: 'background.default', color: 'text.primary', flex: 1,
38 - maxWidth: '100%' /*avoid horizontal overflow (eg: customHtml with long line) */ },
38 + transition: 'background-color .4s',
39 + maxWidth: '100%' /*avoid horizontal overflow (eg: customHtml with long line) */
40 + },
41 ...props
42 })
43 }