fix: clean up code formatting and ensure consistent style in HomeExtras and Layout components

This commit is contained in:
mr. M 2025-01-19 17:15:30 +01:00
parent 4576432b34
commit 7c5efc6522
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB
4 changed files with 15 additions and 30 deletions

View file

@ -30,11 +30,7 @@ import { getTitleAnimation, getZoomInAnimation } from '../animations'
</motion.span> </motion.span>
<div class="relative mt-8 flex items-center justify-center"> <div class="relative mt-8 flex items-center justify-center">
<motion.span client:load {...getTitleAnimation(0.6)}> <motion.span client:load {...getTitleAnimation(0.6)}>
<a <a href="https://tuta.com/" target="_blank" class="w-fit">
href="https://tuta.com/"
target="_blank"
class="w-fit"
>
<Image src={tutaLogo} alt="Tuta" class="h-16 w-fit object-contain" /> <Image src={tutaLogo} alt="Tuta" class="h-16 w-fit object-contain" />
</a> </a>
</motion.span> </motion.span>

View file

@ -12,24 +12,23 @@ import Footer from '../components/Footer.astro'
<script is:inline> <script is:inline>
const theme = (() => { const theme = (() => {
if (typeof localStorage !== 'undefined' && localStorage.getItem('theme')) { if (typeof localStorage !== 'undefined' && localStorage.getItem('theme')) {
return localStorage.getItem('theme') ?? "light"; return localStorage.getItem('theme') ?? 'light'
} }
if (window.matchMedia('(prefers-color-scheme: dark)').matches) { if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
return 'dark'; return 'dark'
} }
return 'light'; return 'light'
})(); })()
if (theme === 'light') { if (theme === 'light') {
document.documentElement.setAttribute('data-theme', 'light'); document.documentElement.setAttribute('data-theme', 'light')
} else { } else {
document.documentElement.setAttribute('data-theme', 'dark'); document.documentElement.setAttribute('data-theme', 'dark')
} }
window.localStorage.setItem('theme', theme); window.localStorage.setItem('theme', theme)
</script> </script>
<!doctype html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="UTF-8" /> <meta charset="UTF-8" />

View file

@ -363,9 +363,7 @@
"version": "1.0.0-a.13", "version": "1.0.0-a.13",
"date": "05/08/2024", "date": "05/08/2024",
"extra": "This is a smaller release to fix some bugs and improve some small details.\n\nIm going to try doing more frequent releases from now on, see how it goes.", "extra": "This is a smaller release to fix some bugs and improve some small details.\n\nIm going to try doing more frequent releases from now on, see how it goes.",
"features": [ "features": ["Allow to remember sidebar width even after collapsing it."],
"Allow to remember sidebar width even after collapsing it."
],
"fixes": [ "fixes": [
{ {
"description": "Task Manager Icon Missing in Flatpak Version", "description": "Task Manager Icon Missing in Flatpak Version",
@ -921,9 +919,7 @@
"image": true, "image": true,
"workflowId": 11000317603, "workflowId": 11000317603,
"extra": "This update addresses some significant issues with the previous release.\n\nWe appreciate your patience and support!", "extra": "This update addresses some significant issues with the previous release.\n\nWe appreciate your patience and support!",
"features": [ "features": ["Added a new system for handling keyboard shortcuts"],
"Added a new system for handling keyboard shortcuts"
],
"fixes": [ "fixes": [
{ {
"description": "The New Tab button is not visible", "description": "The New Tab button is not visible",
@ -980,9 +976,7 @@
"Enabled container tabs by default", "Enabled container tabs by default",
"Improved Expand Tabs on Hover layout" "Improved Expand Tabs on Hover layout"
], ],
"themeChanges": [ "themeChanges": ["Toggle inputs will not use the themed tertiary color"],
"Toggle inputs will not use the themed tertiary color"
],
"breakingChanges": [ "breakingChanges": [
"The keyboard shortcuts will be overriden by the defaults ones in this update" "The keyboard shortcuts will be overriden by the defaults ones in this update"
], ],
@ -1279,9 +1273,7 @@
"issue": 2156 "issue": 2156
} }
], ],
"breakingChanges": [ "breakingChanges": ["Removed Show Expand Button option from settings"],
"Removed Show Expand Button option from settings"
],
"themeChanges": [ "themeChanges": [
"The variable '--zen-main-browser-background' will now contain the generated gradient", "The variable '--zen-main-browser-background' will now contain the generated gradient",
"Added the 'unread' attribute for background tabs that haven't been accessed yet" "Added the 'unread' attribute for background tabs that haven't been accessed yet"
@ -1384,9 +1376,7 @@
"description": "Fixed wrong aligment on glance action buttons" "description": "Fixed wrong aligment on glance action buttons"
} }
], ],
"features": [ "features": ["No new features, sorry"]
"No new features, sorry"
]
}, },
{ {
"version": "1.0.1-a.17", "version": "1.0.1-a.17",
@ -2053,4 +2043,4 @@
"workflowId": 12794695928, "workflowId": 12794695928,
"date": "14/01/2025" "date": "14/01/2025"
} }
] ]

View file

@ -31,4 +31,4 @@
"Changed default setting for 'Essentials favicon in background' to false, These settings will be better handled once we have a customized settings page", "Changed default setting for 'Essentials favicon in background' to false, These settings will be better handled once we have a customized settings page",
"Changed the about:config 'close window with last tab' default value to false" "Changed the about:config 'close window with last tab' default value to false"
] ]
} }