diff --git a/src/features/SetupFont/index.ts b/src/features/SetupFont/index.ts index b23d6b5..d712fd0 100644 --- a/src/features/SetupFont/index.ts +++ b/src/features/SetupFont/index.ts @@ -1,7 +1,4 @@ -export { - SetupFontMenu, - TypographyMenu, -} from './ui'; +export { TypographyMenu } from './ui'; export { type ControlId, @@ -20,6 +17,9 @@ export { MIN_FONT_SIZE, MIN_FONT_WEIGHT, MIN_LINE_HEIGHT, + MULTIPLIER_L, + MULTIPLIER_M, + MULTIPLIER_S, } from './model'; export { diff --git a/src/features/SetupFont/ui/SetupFontMenu.svelte b/src/features/SetupFont/ui/SetupFontMenu.svelte deleted file mode 100644 index e298cad..0000000 --- a/src/features/SetupFont/ui/SetupFontMenu.svelte +++ /dev/null @@ -1,46 +0,0 @@ - - - -
-
- {#each controlManager.controls as control (control.id)} - - {/each} -
-
diff --git a/src/features/SetupFont/ui/TypographyMenu.svelte b/src/features/SetupFont/ui/TypographyMenu.svelte index 4c579de..3166e48 100644 --- a/src/features/SetupFont/ui/TypographyMenu.svelte +++ b/src/features/SetupFont/ui/TypographyMenu.svelte @@ -1,41 +1,121 @@
- - - - - + {#if responsive.isMobile} + + {#snippet trigger({ onClick })} + + {#snippet icon({ className })} + + {/snippet} + + {/snippet} + {#snippet content()} +
+ {#each controlManager.controls as control (control.id)} + + {/each} +
+ {/snippet} +
+ {:else} + + +
+
+ {#each controlManager.controls as control (control.id)} + + {/each} +
+
+
+
+ {/if}
diff --git a/src/features/SetupFont/ui/index.ts b/src/features/SetupFont/ui/index.ts index be91868..ff51592 100644 --- a/src/features/SetupFont/ui/index.ts +++ b/src/features/SetupFont/ui/index.ts @@ -1,2 +1 @@ -export { default as SetupFontMenu } from './SetupFontMenu.svelte'; export { default as TypographyMenu } from './TypographyMenu.svelte'; diff --git a/src/widgets/SampleList/ui/SampleList/SampleList.svelte b/src/widgets/SampleList/ui/SampleList/SampleList.svelte index 6f0c525..7930e9f 100644 --- a/src/widgets/SampleList/ui/SampleList/SampleList.svelte +++ b/src/widgets/SampleList/ui/SampleList/SampleList.svelte @@ -102,6 +102,6 @@ function checkPosition() { {#if isAboveMiddle} - + {/if}