This commit is contained in:
Timothy Jaeryang Baek
2026-04-21 15:20:28 +09:00
parent 0e3135f8dc
commit 5f76c250f8
2 changed files with 7 additions and 2 deletions
@@ -125,7 +125,7 @@
class="p-0.5 rounded-md text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300 transition"
on:click|stopPropagation={() => {
show = false;
showSettings.set(true);
showSettings.set('tools');
}}
>
<svg
+6 -1
View File
@@ -31,11 +31,16 @@
const i18n = getContext('i18n');
export let show = false;
export let show: boolean | string = false;
$: if (show) {
if (typeof show === 'string') {
selectedTab = show;
show = true;
}
addScrollListener();
} else {
selectedTab = 'general';
removeScrollListener();
}