From 1bb547e1a3a5762e2334fd55388501e7d8557390 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Tue, 27 Dec 2022 11:00:05 +0800 Subject: [PATCH] Use box-shadow, border skews the actual dimension --- src/components/avatar.css | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/avatar.css b/src/components/avatar.css index 6e20f67d..72859e51 100644 --- a/src/components/avatar.css +++ b/src/components/avatar.css @@ -5,7 +5,7 @@ border-radius: 50%; overflow: hidden; background-color: var(--bg-faded-color); - border: 1px solid var(--outline-color); + box-shadow: 0 0 0 1px var(--bg-blur-color); flex-shrink: 0; } @@ -14,4 +14,4 @@ height: 100%; object-fit: cover; background-color: var(--img-bg-color); -} \ No newline at end of file +}