From adb1bd5945609cb3b8476e00bc5f5a2e416c14fa Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Wed, 29 Apr 2026 10:34:46 +0200 Subject: [PATCH] fix: fix height on mobile --- src/components/StackedNote.vue | 16 ++++- src/components/WelcomeWorld.vue | 16 ++--- src/hooks/useMarkdown.hook.ts | 3 +- src/hooks/useResizeContainer.hook.ts | 2 +- src/modules/repo/store/userRepo.store.ts | 5 +- src/utils/alloy.tmLanguage.json | 88 +++++++++++++++++++----- src/utils/downloadFont.ts | 24 ++++--- 7 files changed, 114 insertions(+), 40 deletions(-) diff --git a/src/components/StackedNote.vue b/src/components/StackedNote.vue index 043db60..2dfa45b 100644 --- a/src/components/StackedNote.vue +++ b/src/components/StackedNote.vue @@ -13,7 +13,11 @@ import { useFile } from "@/hooks/useFile.hook" import { useGitHubContent } from "@/hooks/useGitHubContent.hook" import { useImages } from "@/hooks/useImages.hook" import { useLinks } from "@/hooks/useLinks.hook" -import { renderCodeFile, runMermaid, useShikiji } from "@/hooks/useMarkdown.hook" +import { + renderCodeFile, + runMermaid, + useShikiji +} from "@/hooks/useMarkdown.hook" import { getFileLanguage, isMarkdownPath } from "@/utils/fileLanguage" import { useNoteOverlay } from "@/hooks/useNoteOverlay.hook" import { useRouteQueryStackedNotes } from "@/hooks/useRouteQueryStackedNotes.hook" @@ -54,7 +58,9 @@ const { getEditedSha } = useFile(sha) const initialRawContent = ref(null) -const isMarkdown = computed(() => (path.value ? isMarkdownPath(path.value) : true)) +const isMarkdown = computed(() => + path.value ? isMarkdownPath(path.value) : true +) const displayedContent = ref("") watch( @@ -237,7 +243,11 @@ watch(mode, async (newMode) => {
-
+
diff --git a/src/components/WelcomeWorld.vue b/src/components/WelcomeWorld.vue index 12e6bcd..0bded95 100644 --- a/src/components/WelcomeWorld.vue +++ b/src/components/WelcomeWorld.vue @@ -533,8 +533,8 @@ const showReviewCard = computed( means.

- Rule of thumb: write the title as the claim, and the body - as the argument. + Rule of thumb: write the title as the claim, and the body as + the argument.