Skip to content

Commit 0f8cd12

Browse files
authored
Rounded corners
1 parent f4e1ea8 commit 0f8cd12

5 files changed

Lines changed: 4 additions & 19 deletions

File tree

src/lib/PWABadge.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
{#if toast}
6565
<div
66-
class="bg-base-100 dark:bg-base-200 border-base-400/30 fixed right-0 bottom-0 z-[999] m-4 rounded-sm border text-left shadow-md"
66+
class="bg-base-100 dark:bg-base-200 border-base-400/30 fixed right-0 bottom-0 z-[999] m-4 rounded-md border text-left shadow-md"
6767
role="alert"
6868
aria-labelledby="toast-message">
6969
<div class="m-3 mr-10">

src/lib/components/Modal.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
max-w-[64rem]
4040
min-w-full
4141
-translate-1/2
42-
rounded-sm
42+
rounded-md
4343
border
4444
p-0
4545
backdrop:bg-black

src/lib/components/Preview.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
prose-code:bg-base-400
128128
prose-code:py-1
129129
prose-code:px-2
130-
prose-code:rounded-sm
130+
prose-code:rounded-md
131131
prose-code:before:content-none
132132
prose-code:after:content-none
133133
prose-code:font-medium

src/routes/+page.svelte

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import Modal from "$lib/components/Modal.svelte";
44
import Settings from "$lib/components/modals/Settings.svelte";
55
import Shortcuts from "$lib/components/modals/Shortcuts.svelte";
6-
import type { ToolbarItem } from "$lib/types";
76
import { CircleHelp, Notebook, SettingsIcon } from "lucide-svelte";
87
import { createGlobalHotkeys as hotkeys, editorHotkeys } from "$lib/utils/hotkeys";
98
import {
@@ -12,20 +11,6 @@
1211
getSettingsModalVisibility,
1312
setSettingsModalVisibility,
1413
} from "$lib/components/Editor.svelte.ts";
15-
import { getEnabledToolbarItems } from "$lib/components/modals/Settings.svelte.ts";
16-
17-
// const items: ToolbarItem[] = [{ id: 9, enabled: false }];
18-
19-
// Get enabled toolbar items from settings
20-
let enabledItems = $derived(getEnabledToolbarItems());
21-
22-
// Convert to the format expected by your Editor component
23-
let toolbarItems = $derived(
24-
enabledItems.map((item: ToolbarItem) => ({
25-
id: parseInt(item.id) || 0,
26-
enabled: item.enabled,
27-
}))
28-
);
2914
3015
let shortcutModalVisible = $derived(getShortcutModalVisibility());
3116
let settingsModalVisible = $derived(getSettingsModalVisibility());

src/styles/config.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ body.dark {
8484

8585
@layer utilities {
8686
.btn {
87-
@apply flex cursor-pointer items-center gap-2 rounded-sm px-2 py-1 transition-all;
87+
@apply flex cursor-pointer items-center gap-2 rounded-md px-2 py-1 transition-all;
8888
@apply hover:backdrop-brightness-95 dark:hover:backdrop-brightness-150;
8989
@apply aria-pressed:cursor-default aria-pressed:backdrop-brightness-95 dark:aria-pressed:backdrop-brightness-150;
9090
@apply disabled:cursor-default disabled:opacity-50 disabled:hover:backdrop-brightness-100;

0 commit comments

Comments
 (0)