파일 업로드가 완료된 후에 파일/디렉터리 목록이 갱신되지 않던 버그 수정 및 구현되지 않은 탭 임시 레이아웃 구현

This commit is contained in:
static
2025-01-07 01:25:14 +09:00
parent 7a1bf80a12
commit 661e7a33de
12 changed files with 61 additions and 34 deletions

View File

@@ -1,4 +1,5 @@
<script lang="ts">
import { goto } from "$app/navigation";
import { page } from "$app/state";
import { AdaptiveDiv } from "$lib/components/divs";
@@ -26,7 +27,10 @@
<div class="flex w-full justify-evenly px-4 py-2">
{#each pages as { path, label, icon: Icon }}
{@const textColor = !page.url.pathname.startsWith(path) ? "text-gray-600" : ""}
<button class="w-16 active:rounded-xl active:bg-gray-100 {textColor}">
<button
onclick={() => goto(path)}
class="w-16 active:rounded-xl active:bg-gray-100 {textColor}"
>
<div class="gap-y flex flex-col items-center gap-y-1 p-1 transition active:scale-95">
<Icon class="text-xl" fill="0" />
<p class="text-sm">{label}</p>