diff --git a/packages/client/src/components/MkButton.vue b/packages/client/src/components/MkButton.vue index 2290daa6b..140b8ddb0 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 9004a449d..f171417f7 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 237afc675..44b05e269 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 9045c890b..c9c38a53e 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 bb1321d9f..d276a4d9a 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 72b71996e..8dc944213 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})` + " >