From 121ddedce86ac31a303c6a9b31ac8df2ee85f1cc Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sun, 30 Apr 2023 13:27:27 -0700 Subject: [PATCH] chore: format --- packages/client/src/components/MkCwButton.vue | 10 +++--- .../client/src/components/MkEmojiPicker.vue | 2 +- .../client/src/components/MkLaunchPad.vue | 3 +- .../client/src/components/MkMenu.child.vue | 18 +++++----- packages/client/src/components/MkMenu.vue | 35 +++++++++++++------ packages/client/src/components/MkModal.vue | 9 +++-- .../client/src/components/MkModalWindow.vue | 2 +- packages/client/src/components/MkNote.vue | 2 +- .../src/components/MkSubNoteContent.vue | 31 +++++++++++----- .../client/src/components/MkSuperMenu.vue | 3 +- .../client/src/components/MkUserPreview.vue | 17 +++++---- .../src/components/global/RouterView.vue | 2 +- packages/client/src/pages/admin/_header_.vue | 4 ++- .../src/pages/admin/overview.moderators.vue | 7 +++- packages/client/src/pages/mfm-cheat-sheet.vue | 16 ++++++--- packages/client/src/ui/_common_/navbar.vue | 2 +- 16 files changed, 110 insertions(+), 53 deletions(-) diff --git a/packages/client/src/components/MkCwButton.vue b/packages/client/src/components/MkCwButton.vue index 1f6340510b..5e59853b66 100644 --- a/packages/client/src/components/MkCwButton.vue +++ b/packages/client/src/components/MkCwButton.vue @@ -28,7 +28,7 @@ const emit = defineEmits<{ (ev: "update:modelValue", v: boolean): void; }>(); -const el = ref(); +const el = ref(); const label = computed(() => { return concat([ @@ -52,7 +52,7 @@ function focus() { } defineExpose({ - focus + focus, }); @@ -73,7 +73,8 @@ defineExpose({ } } } - &:hover > span, &:focus > span { + &:hover > span, + &:focus > span { background: var(--cwFg) !important; color: var(--cwBg) !important; } @@ -93,7 +94,8 @@ defineExpose({ border-radius: 999px; box-shadow: 0 2px 6px rgb(0 0 0 / 20%); } - &:hover, &:focus { + &:hover, + &:focus { > span { background: var(--panelHighlight); } diff --git a/packages/client/src/components/MkEmojiPicker.vue b/packages/client/src/components/MkEmojiPicker.vue index 88d207babb..3dd54ed840 100644 --- a/packages/client/src/components/MkEmojiPicker.vue +++ b/packages/client/src/components/MkEmojiPicker.vue @@ -174,7 +174,7 @@ import { deviceKind } from "@/scripts/device-kind"; import { emojiCategories, instance } from "@/instance"; import { i18n } from "@/i18n"; import { defaultStore } from "@/store"; -import { FocusTrap } from 'focus-trap-vue'; +import { FocusTrap } from "focus-trap-vue"; const props = withDefaults( defineProps<{ diff --git a/packages/client/src/components/MkLaunchPad.vue b/packages/client/src/components/MkLaunchPad.vue index 759c215f73..b1f42ec76b 100644 --- a/packages/client/src/components/MkLaunchPad.vue +++ b/packages/client/src/components/MkLaunchPad.vue @@ -139,7 +139,8 @@ function close() { height: 100px; border-radius: 10px; - &:hover, &:focus-visible { + &:hover, + &:focus-visible { color: var(--accent); background: var(--accentedBg); text-decoration: none; diff --git a/packages/client/src/components/MkMenu.child.vue b/packages/client/src/components/MkMenu.child.vue index e5ca9e4ee4..83ae6b5a14 100644 --- a/packages/client/src/components/MkMenu.child.vue +++ b/packages/client/src/components/MkMenu.child.vue @@ -1,14 +1,14 @@