From ab4ceae1e3d8ed6daba275c709577addb4c07c8e Mon Sep 17 00:00:00 2001 From: patak Date: Wed, 28 Dec 2022 22:14:29 +0100 Subject: [PATCH] fix: avatar glitches in some OS/browsers --- components/account/AccountBigAvatar.vue | 16 ++++++++++++++++ components/account/AccountInfo.vue | 2 +- components/publish/PublishWidget.vue | 2 +- components/status/StatusCard.vue | 2 +- unocss.config.ts | 3 --- 5 files changed, 19 insertions(+), 6 deletions(-) create mode 100644 components/account/AccountBigAvatar.vue diff --git a/components/account/AccountBigAvatar.vue b/components/account/AccountBigAvatar.vue new file mode 100644 index 00000000..ecc0b3b0 --- /dev/null +++ b/components/account/AccountBigAvatar.vue @@ -0,0 +1,16 @@ + + + diff --git a/components/account/AccountInfo.vue b/components/account/AccountInfo.vue index c8375836..4e8a7f42 100644 --- a/components/account/AccountInfo.vue +++ b/components/account/AccountInfo.vue @@ -17,7 +17,7 @@ defineOptions({ - +
diff --git a/unocss.config.ts b/unocss.config.ts index db0ad0f4..0ee92d8c 100644 --- a/unocss.config.ts +++ b/unocss.config.ts @@ -55,9 +55,6 @@ export default defineConfig({ 'flex-v-center': 'items-center', 'flex-h-center': 'justify-center', 'bg-hover-overflow': 'relative z-0 transition-colors duration-250 after-content-empty after:(absolute inset--2px bg-transparent rounded-lg z--1 transition-colors duration-250) hover:after:(bg-active)', - - // account - 'account-avatar-normal': 'w-54px h-54px border-3 border-bg-base', }, ], presets: [