From 94d44f0c88aafbbd3bc15bd4d9b8636e7555438e Mon Sep 17 00:00:00 2001 From: charlie Date: Sat, 21 Dec 2024 12:24:10 +0800 Subject: [PATCH] enhance(ui): simplify css code --- src/main/frontend/components/file_sync.css | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/main/frontend/components/file_sync.css b/src/main/frontend/components/file_sync.css index 68e3287830..83ad8646b0 100644 --- a/src/main/frontend/components/file_sync.css +++ b/src/main/frontend/components/file_sync.css @@ -10,16 +10,12 @@ @apply relative; &.on { + @apply after:content-['*']; + &:after { - content: " "; - position: absolute; - bottom: 10px; - right: 8px; - width: 7px; - height: 7px; + @apply absolute bottom-2.5 right-1 w-[7px] h-[7px] rounded-full opacity-100 text-transparent; + background-color: var(--ls-color-file-sync-pending); - border-radius: 100%; - opacity: 1; } &.syncing {