From 32318bbbfa1e67913100c3d03a3ee64393831d50 Mon Sep 17 00:00:00 2001 From: ShittyKopper Date: Sat, 23 Dec 2023 15:20:51 +0300 Subject: [PATCH] fix: un-hardcode more border radius values all of these are blind find and replace, no clue if they end up breaking anything --- packages/frontend/src/components/MkChannelPreview.vue | 2 +- packages/frontend/src/components/MkCode.core.vue | 2 +- packages/frontend/src/components/MkCode.vue | 4 ++-- packages/frontend/src/components/MkCodeEditor.vue | 4 ++-- packages/frontend/src/components/MkEmojiPicker.section.vue | 4 ++-- packages/frontend/src/components/MkPostForm.vue | 2 +- .../src/components/global/MkMisskeyFlavoredMarkdown.ts | 2 +- .../src/pages/settings/avatar-decoration.decoration.vue | 2 +- packages/frontend/src/pages/settings/emoji-picker.vue | 4 ++-- packages/frontend/src/pages/user/raw.vue | 2 +- 10 files changed, 14 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/MkChannelPreview.vue b/packages/frontend/src/components/MkChannelPreview.vue index 96590a469..f870b0eef 100644 --- a/packages/frontend/src/components/MkChannelPreview.vue +++ b/packages/frontend/src/components/MkChannelPreview.vue @@ -198,7 +198,7 @@ const bannerStyle = computed(() => { transform: translate(25%, -25%); background-color: var(--accent); border: solid var(--bg) 4px; - border-radius: 100%; + border-radius: var(--radius-full); width: 1.5rem; height: 1.5rem; aspect-ratio: 1 / 1; diff --git a/packages/frontend/src/components/MkCode.core.vue b/packages/frontend/src/components/MkCode.core.vue index 19418cd4d..579c72b18 100644 --- a/packages/frontend/src/components/MkCode.core.vue +++ b/packages/frontend/src/components/MkCode.core.vue @@ -62,7 +62,7 @@ watch(() => props.lang, (to) => { padding: 1em; margin: .5em 0; overflow: auto; - border-radius: 8px; + border-radius: var(--radius-sm); & pre, & code { diff --git a/packages/frontend/src/components/MkCode.vue b/packages/frontend/src/components/MkCode.vue index 2c016e4d7..7346d5782 100644 --- a/packages/frontend/src/components/MkCode.vue +++ b/packages/frontend/src/components/MkCode.vue @@ -56,7 +56,7 @@ const XCode = defineAsyncComponent(() => import('@/components/MkCode.core.vue')) padding: 1em; margin: .5em 0; overflow: auto; - border-radius: 8px; + border-radius: var(--radius-sm); } .codeBlockFallbackCode { @@ -74,7 +74,7 @@ const XCode = defineAsyncComponent(() => import('@/components/MkCode.core.vue')) cursor: pointer; box-sizing: border-box; - border-radius: 8px; + border-radius: var(--radius-sm); padding: 24px; margin-top: 4px; color: #D4D4D4; diff --git a/packages/frontend/src/components/MkCodeEditor.vue b/packages/frontend/src/components/MkCodeEditor.vue index c9bcc7119..c1aaa7f1f 100644 --- a/packages/frontend/src/components/MkCodeEditor.vue +++ b/packages/frontend/src/components/MkCodeEditor.vue @@ -161,7 +161,7 @@ watch(v, newValue => { overflow-y: hidden; box-sizing: border-box; margin: 0; - border-radius: 6px; + border-radius: var(--radius-sm); padding: 0; color: var(--fg); border: solid 1px var(--panel); @@ -202,7 +202,7 @@ watch(v, newValue => { caret-color: rgb(225, 228, 232); background-color: transparent; border: 0; - border-radius: 6px; + border-radius: var(--radius-sm); outline: 0; min-width: calc(100% - 24px); height: 100%; diff --git a/packages/frontend/src/components/MkEmojiPicker.section.vue b/packages/frontend/src/components/MkEmojiPicker.section.vue index 49c146b68..ea9d7a0d2 100644 --- a/packages/frontend/src/components/MkEmojiPicker.section.vue +++ b/packages/frontend/src/components/MkEmojiPicker.section.vue @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only