Skip to content

Commit 352aaac

Browse files
committed
fix: 🐛 Vertical alignment of icons and color switch in nav bar
1 parent 6c9427a commit 352aaac

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

ui/components/switch/ColorSwitch.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const switchStyle = computed(() => ({
2626
bordered
2727
aria-label="Toggle dark/light mode"
2828
:style="switchStyle"
29-
class="mt-[.3rem] transition-colors duration-300 ease-in-out"
29+
class="transition-colors duration-300 ease-in-out"
3030
>
3131
<template #checked-icon>
3232
<Icon icon="material-symbols:moon-stars-outline" class="icon" />

ui/layouts/default.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ const toggleMobileMenu = () => {
7474

7575
<ProfileStatus />
7676

77-
<n-flex justify="center" gap="4" class="-ml-4">
77+
<n-flex justify="center" align="center" gap="4" class="-ml-4">
7878
<NuxtLink
7979
to="https://docs.codefair.io/"
8080
target="_blank"
81-
class="text-lg font-bold text-[var(--gray-600-300)] transition duration-100 hover:text-indigo-500 active:text-indigo-700"
81+
class="leading-[0] text-[var(--gray-600-300)] transition duration-100 hover:text-indigo-500 active:text-indigo-700"
8282
>
8383
<n-popover trigger="hover" placement="top" :show-arrow="false">
8484
<template #trigger>
@@ -109,7 +109,7 @@ const toggleMobileMenu = () => {
109109
<NuxtLink
110110
to="https://github.com/fairdataihub/codefair-app"
111111
target="_blank"
112-
class="text-lg font-bold text-[var(--gray-600-300)] transition duration-100 hover:text-indigo-500 active:text-indigo-700"
112+
class="leading-[0] text-[var(--gray-600-300)] transition duration-100 hover:text-indigo-500 active:text-indigo-700"
113113
>
114114
<n-popover trigger="hover" placement="top" :show-arrow="false">
115115
<template #trigger>

0 commit comments

Comments
 (0)