refactor(settings): reorganize FolderPicker component and update layout

- Moved FolderPicker to a new folder structure for better organization.
- Updated the Settings page layout to enhance visual hierarchy by increasing the title size.
- Removed the old FolderPicker component file after restructuring.
This commit is contained in:
2025-04-14 08:55:36 +02:00
parent 2f26b5dfd9
commit 048fc38032
3 changed files with 6 additions and 7 deletions

View File

@ -1,18 +1,17 @@
import { Button } from "@kobalte/core/button";
import { FolderPicker } from "./components/FolderPicker";
import { FolderPicker } from "./components/folder-picker/FolderPicker";
import { Shortcuts } from "./components/shortcuts/Shortcuts";
export const Settings = () => {
return (
<>
<main class="container pt-2">
<div class="flex px-4 gap-2 items-center">
<div class="flex flex-col px-4 gap-2">
<Button as="a" href="/">
Back to home
</Button>
<h1 class="text-2xl font-bold">Settings</h1>
</div>
<div class="flex flex-col px-4 gap-2">
<h1 class="text-3xl font-bold">Settings</h1>
<FolderPicker />
<Shortcuts />
</div>

View File

@ -1,7 +1,7 @@
import { createEffect, createSignal } from "solid-js";
import { listen } from "@tauri-apps/api/event";
import { FolderPicker } from "./FolderPicker";
import { createEffect, createSignal } from "solid-js";
import { sendImage } from "../network";
import { FolderPicker } from "./folder-picker/FolderPicker";
export function ImageViewer() {
const [latestImage, setLatestImage] = createSignal<string | null>(null);