summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkChannelFollowButton.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/components/MkChannelFollowButton.vue')
-rw-r--r--packages/frontend/src/components/MkChannelFollowButton.vue17
1 files changed, 4 insertions, 13 deletions
diff --git a/packages/frontend/src/components/MkChannelFollowButton.vue b/packages/frontend/src/components/MkChannelFollowButton.vue
index 22566628a8..6dace43fde 100644
--- a/packages/frontend/src/components/MkChannelFollowButton.vue
+++ b/packages/frontend/src/components/MkChannelFollowButton.vue
@@ -26,17 +26,18 @@ SPDX-License-Identifier: AGPL-3.0-only
<script lang="ts" setup>
import { ref } from 'vue';
+import * as Misskey from 'misskey-js';
import { misskeyApi } from '@/scripts/misskey-api.js';
import { i18n } from '@/i18n.js';
const props = withDefaults(defineProps<{
- channel: Record<string, any>;
+ channel: Misskey.entities.Channel;
full?: boolean;
}>(), {
full: false,
});
-const isFollowing = ref<boolean>(props.channel.isFollowing);
+const isFollowing = ref(props.channel.isFollowing);
const wait = ref(false);
async function onClick() {
@@ -86,17 +87,7 @@ async function onClick() {
}
&:focus-visible {
- &:after {
- content: "";
- pointer-events: none;
- position: absolute;
- top: -5px;
- right: -5px;
- bottom: -5px;
- left: -5px;
- border: 2px solid var(--focus);
- border-radius: var(--radius-xl);
- }
+ outline-offset: 2px;
}
&:hover {