diff --git a/src/client/components/channel-follow-button.vue b/src/client/components/channel-follow-button.vue
index 6f9405b97f..bd8627f6e8 100644
--- a/src/client/components/channel-follow-button.vue
+++ b/src/client/components/channel-follow-button.vue
@@ -91,7 +91,7 @@ export default defineComponent({
width: 31px;
}
- &:focus {
+ &:focus-visible {
&:after {
content: "";
pointer-events: none;
diff --git a/src/client/components/emoji-picker-window.vue b/src/client/components/emoji-picker-window.vue
index 53b6ae6b32..b7b884565b 100644
--- a/src/client/components/emoji-picker-window.vue
+++ b/src/client/components/emoji-picker-window.vue
@@ -153,7 +153,7 @@ export default defineComponent({
height: var(--eachSize);
border-radius: 4px;
- &:focus {
+ &:focus-visible {
outline: solid 2px var(--focus);
z-index: 1;
}
diff --git a/src/client/components/emoji-picker.vue b/src/client/components/emoji-picker.vue
index d8703202c7..85a12a08e6 100644
--- a/src/client/components/emoji-picker.vue
+++ b/src/client/components/emoji-picker.vue
@@ -465,7 +465,7 @@ export default defineComponent({
height: var(--eachSize);
border-radius: 4px;
- &:focus {
+ &:focus-visible {
outline: solid 2px var(--focus);
z-index: 1;
}
diff --git a/src/client/components/follow-button.vue b/src/client/components/follow-button.vue
index 5685b86a51..5eba9b1f6b 100644
--- a/src/client/components/follow-button.vue
+++ b/src/client/components/follow-button.vue
@@ -161,7 +161,7 @@ export default defineComponent({
width: 31px;
}
- &:focus {
+ &:focus-visible {
&:after {
content: "";
pointer-events: none;
diff --git a/src/client/components/media-caption.vue b/src/client/components/media-caption.vue
index 73eba23025..b35b101d06 100644
--- a/src/client/components/media-caption.vue
+++ b/src/client/components/media-caption.vue
@@ -206,7 +206,7 @@ export default defineComponent({
min-width: 100%;
min-height: 90px;
- &:focus {
+ &:focus-visible {
outline: none;
}
diff --git a/src/client/components/note.vue b/src/client/components/note.vue
index 9fa986836d..3b07884cee 100644
--- a/src/client/components/note.vue
+++ b/src/client/components/note.vue
@@ -888,7 +888,7 @@ export default defineComponent({
//content-visibility: auto;
//contain-intrinsic-size: 0 128px;
- &:focus {
+ &:focus-visible {
outline: none;
&:after {
diff --git a/src/client/components/post-form.vue b/src/client/components/post-form.vue
index 657053cc93..4ec09e76db 100644
--- a/src/client/components/post-form.vue
+++ b/src/client/components/post-form.vue
@@ -819,7 +819,7 @@ export default defineComponent({
color: var(--fg);
font-family: inherit;
- &:focus {
+ &:focus-visible {
outline: none;
}
diff --git a/src/client/components/ui/button.vue b/src/client/components/ui/button.vue
index 6e3cd485c8..53b973fe55 100644
--- a/src/client/components/ui/button.vue
+++ b/src/client/components/ui/button.vue
@@ -1,7 +1,7 @@
@@ -18,12 +22,16 @@ export default defineComponent({
props: {
to: {
type: String,
- required: true
+ required: false
},
active: {
type: Boolean,
required: false
},
+ danger: {
+ type: Boolean,
+ required: false
+ },
external: {
type: Boolean,
required: false
@@ -33,10 +41,6 @@ export default defineComponent({
required: false,
},
},
- data() {
- return {
- };
- }
});
@@ -61,6 +65,10 @@ export default defineComponent({
background: var(--accentedBg);
}
+ &.danger {
+ color: var(--error);
+ }
+
> .icon {
width: 32px;
margin-right: 2px;
diff --git a/src/client/pages/settings/index.vue b/src/client/pages/settings/index.vue
index 399f4049b6..5748d4bf5c 100644
--- a/src/client/pages/settings/index.vue
+++ b/src/client/pages/settings/index.vue
@@ -33,12 +33,10 @@
API
{{ $ts.other }}
-
- {{ $ts.clearCache }}
-
-
- {{ $ts.logout }}
-
+
+ {{ $ts.clearCache }}
+ {{ $ts.logout }}
+
@@ -50,8 +48,6 @@
import { computed, defineAsyncComponent, defineComponent, nextTick, onMounted, reactive, ref, watch } from 'vue';
import { i18n } from '@client/i18n';
import XLink from './index.link.vue';
-import FormGroup from '@client/components/debobigego/group.vue';
-import FormButton from '@client/components/debobigego/button.vue';
import MkInfo from '@client/components/ui/info.vue';
import { scroll } from '@client/scripts/scroll';
import { signout } from '@client/account';
@@ -63,8 +59,6 @@ import { $i } from '@client/account';
export default defineComponent({
components: {
XLink,
- FormGroup,
- FormButton,
MkInfo,
},
@@ -220,7 +214,7 @@ export default defineComponent({
display: block;
width: 50px;
height: 50px;
- margin: 0 auto 8px auto;
+ margin: 8px auto 16px auto;
}
}
}
diff --git a/src/client/style.scss b/src/client/style.scss
index 5b55ab8caf..8e1d74bc76 100644
--- a/src/client/style.scss
+++ b/src/client/style.scss
@@ -178,7 +178,7 @@ hr {
pointer-events: none;
}
- &:focus {
+ &:focus-visible {
outline: none;
}
@@ -509,7 +509,7 @@ hr {
padding: 5px;
}
-.prism-editor__textarea:focus {
+.prism-editor__textarea:focus-visible {
outline: none;
}
diff --git a/src/client/ui/chat/note.vue b/src/client/ui/chat/note.vue
index 26d44d26aa..c376887b84 100644
--- a/src/client/ui/chat/note.vue
+++ b/src/client/ui/chat/note.vue
@@ -872,7 +872,7 @@ export default defineComponent({
//content-visibility: auto;
//contain-intrinsic-size: 0 128px;
- &:focus {
+ &:focus-visible {
outline: none;
}
diff --git a/src/client/ui/chat/post-form.vue b/src/client/ui/chat/post-form.vue
index 0f9a206fab..0cacaf77e7 100644
--- a/src/client/ui/chat/post-form.vue
+++ b/src/client/ui/chat/post-form.vue
@@ -681,7 +681,7 @@ export default defineComponent({
color: var(--fg);
font-family: inherit;
- &:focus {
+ &:focus-visible {
outline: none;
}
diff --git a/src/client/widgets/aiscript.vue b/src/client/widgets/aiscript.vue
index 2ea6d09ff5..aaf0a0372e 100644
--- a/src/client/widgets/aiscript.vue
+++ b/src/client/widgets/aiscript.vue
@@ -125,7 +125,7 @@ export default defineComponent({
box-sizing: border-box;
font: inherit;
- &:focus {
+ &:focus-visible {
outline: none;
}
}
diff --git a/src/client/widgets/memo.vue b/src/client/widgets/memo.vue
index 13ab628f24..3f11e6409e 100644
--- a/src/client/widgets/memo.vue
+++ b/src/client/widgets/memo.vue
@@ -81,7 +81,7 @@ export default defineComponent({
font: inherit;
font-size: 0.9em;
- &:focus {
+ &:focus-visible {
outline: none;
}
}