From 6d3a5d63cca9a7439debe58aefccd754bf2d6105 Mon Sep 17 00:00:00 2001 From: Kainoa Kanter Date: Fri, 19 May 2023 15:41:59 -0700 Subject: [PATCH] chore: formatting --- packages/client/src/components/MkButton.vue | 2 +- .../src/components/MkGalleryPostPreview.vue | 3 +- .../client/src/components/MkMediaList.vue | 4 +- packages/client/src/components/MkNote.vue | 6 +- .../client/src/components/MkNoteDetailed.vue | 72 ++++++++----------- packages/client/src/components/MkNoteSub.vue | 2 +- .../src/components/MkShowMoreButton.vue | 7 +- .../src/components/MkSubNoteContent.vue | 16 ++++- packages/client/src/components/MkTab.vue | 16 ++--- .../src/components/MkTutorialDialog.vue | 5 +- .../client/src/components/MkUserCardMini.vue | 8 ++- packages/client/src/components/global/MkA.vue | 1 - packages/client/src/pages/note.vue | 8 ++- 13 files changed, 82 insertions(+), 68 deletions(-) diff --git a/packages/client/src/components/MkButton.vue b/packages/client/src/components/MkButton.vue index 2290daa6b0..140b8ddb03 100644 --- a/packages/client/src/components/MkButton.vue +++ b/packages/client/src/components/MkButton.vue @@ -193,7 +193,7 @@ function onMousedown(evt: MouseEvent): void { &.mini { padding: 4px 8px; - font-size: .9em; + font-size: 0.9em; border-radius: 100px; } diff --git a/packages/client/src/components/MkGalleryPostPreview.vue b/packages/client/src/components/MkGalleryPostPreview.vue index 9004a449d9..f171417f7b 100644 --- a/packages/client/src/components/MkGalleryPostPreview.vue +++ b/packages/client/src/components/MkGalleryPostPreview.vue @@ -34,7 +34,8 @@ const props = defineProps<{ position: relative; height: 200px; - &:hover, &:focus { + &:hover, + &:focus { text-decoration: none; color: var(--accent); diff --git a/packages/client/src/components/MkMediaList.vue b/packages/client/src/components/MkMediaList.vue index 237afc6753..44b05e269d 100644 --- a/packages/client/src/components/MkMediaList.vue +++ b/packages/client/src/components/MkMediaList.vue @@ -168,11 +168,11 @@ onMounted(() => { addEventListener("popstate", close); // This is a workaround. Not sure why, but when clicking to open, it doesn't move focus to the photoswipe. Preventing using esc to close. However when using keyboard to open it already focuses the lightbox fine. lightbox.pswp.element.focus(); - }) + }); lightbox.on("close", () => { removeEventListener("popstate", close); history.back(); - }) + }); lightbox.init(); diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 9045c890bd..c9c38a53e0 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -130,7 +130,9 @@ @click="reply()" > -
- +
(), @@ -63,7 +64,7 @@ if (props.withChart) { padding: 16px; background: var(--panel); border-radius: 8px; - transition: background .2s; + transition: background 0.2s; > :global(.avatar) { display: block; @@ -104,7 +105,8 @@ if (props.withChart) { height: 30px; } - &:hover, &:focus { + &:hover, + &:focus { background: var(--panelHighlight); } diff --git a/packages/client/src/components/global/MkA.vue b/packages/client/src/components/global/MkA.vue index bb1321d9f4..d276a4d9ac 100644 --- a/packages/client/src/components/global/MkA.vue +++ b/packages/client/src/components/global/MkA.vue @@ -99,7 +99,6 @@ function popout() { function nav(ev: MouseEvent) { if (!ev.ctrlKey && props.behavior !== "browser") { - ev.preventDefault(); if (props.behavior) { diff --git a/packages/client/src/pages/note.vue b/packages/client/src/pages/note.vue index 72b71996ed..8dc944213b 100644 --- a/packages/client/src/pages/note.vue +++ b/packages/client/src/pages/note.vue @@ -27,7 +27,9 @@ v-if="!showNext && hasNext" class="load next" @click="showNext = true" - v-tooltip="`${i18n.ts.loadMore} (${i18n.ts.newer})`" + v-tooltip=" + `${i18n.ts.loadMore} (${i18n.ts.newer})` + " >
@@ -45,7 +47,9 @@ v-if="!showPrev && hasPrev" class="load prev" @click="showPrev = true" - v-tooltip="`${i18n.ts.loadMore} (${i18n.ts.older})`" + v-tooltip=" + `${i18n.ts.loadMore} (${i18n.ts.older})` + " >