优化文件浏览器组件性能,提升加载速度

This commit is contained in:
jxxghp
2025-04-03 12:57:47 +08:00
parent 6f5d62f1f9
commit 3cef928b75
+156 -145
View File
@@ -288,8 +288,9 @@ onMounted(() => {
<div class="site-card-actions"> <div class="site-card-actions">
<VTooltip> <VTooltip>
<template #activator="{ props }"> <template #activator="{ props }">
<button <IconBtn
v-bind="props" v-bind="props"
elevation="0"
class="site-action-btn test-btn" class="site-action-btn test-btn"
@click.stop="testSite" @click.stop="testSite"
:class="{ 'testing': testButtonDisable }" :class="{ 'testing': testButtonDisable }"
@@ -304,7 +305,7 @@ onMounted(() => {
</div> </div>
<span class="loading-text">测试中</span> <span class="loading-text">测试中</span>
</div> </div>
</button> </IconBtn>
</template> </template>
<span>测试站点连通性</span> <span>测试站点连通性</span>
</VTooltip> </VTooltip>
@@ -387,19 +388,19 @@ onMounted(() => {
<style scoped> <style scoped>
.site-card { .site-card {
background: rgba(var(--v-theme-surface), 0.95);
border-radius: 10px;
border: 1px solid rgba(var(--v-theme-on-surface), 0.09);
transition: all 0.3s ease;
cursor: pointer;
position: relative; position: relative;
overflow: hidden; overflow: hidden;
border: 1px solid rgba(var(--v-theme-on-surface), 0.09);
border-radius: 10px;
background: rgba(var(--v-theme-surface), 0.95);
cursor: pointer;
transition: all 0.3s ease;
} }
.site-card:hover { .site-card:hover {
transform: translateY(-4px);
border-color: rgba(var(--v-theme-primary), 0.2); border-color: rgba(var(--v-theme-primary), 0.2);
box-shadow: 0 3px 12px -6px rgba(0, 0, 0, 0.1); box-shadow: 0 3px 12px -6px rgba(0, 0, 0, 10%);
transform: translateY(-4px);
} }
.inactive { .inactive {
@@ -408,19 +409,19 @@ onMounted(() => {
.site-card-content { .site-card-content {
z-index: 1; z-index: 1;
padding: 10px 12px 10px; padding-block: 10px;
padding-inline: 12px;
} }
/* 站点状态指示器 - 更精致的渐变指示 */ /* 站点状态指示器 - 更精致的渐变指示 */
.site-status-indicator { .site-status-indicator {
position: absolute; position: absolute;
top: 0;
left: 0;
right: 0;
height: 2px;
opacity: 0.5;
z-index: 1; z-index: 1;
transition: height 0.3s ease, opacity 0.3s ease; block-size: 2px;
inset-block-start: 0;
inset-inline: 0;
opacity: 0.5;
transition: block-size 0.3s ease, opacity 0.3s ease;
} }
.site-status-indicator.error { .site-status-indicator.error {
@@ -445,7 +446,7 @@ onMounted(() => {
/* 站点卡片悬停时状态指示器变化 */ /* 站点卡片悬停时状态指示器变化 */
.site-card:hover .site-status-indicator { .site-card:hover .site-status-indicator {
height: 2px; block-size: 2px;
opacity: 0.8; opacity: 0.8;
} }
@@ -457,9 +458,9 @@ onMounted(() => {
/* 数据显示相关样式 */ /* 数据显示相关样式 */
.data-transfer-stats { .data-transfer-stats {
margin-top: 6px; border-block-start: 1px solid rgba(var(--v-theme-on-surface), 0.05);
padding-top: 6px; margin-block-start: 6px;
border-top: 1px solid rgba(var(--v-theme-on-surface), 0.05); padding-block-start: 6px;
} }
.data-row { .data-row {
@@ -467,62 +468,59 @@ onMounted(() => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
gap: 12px; gap: 12px;
margin-bottom: 6px; margin-block-end: 6px;
} }
.data-row:last-child { .data-row:last-child {
margin-bottom: 0; margin-block-end: 0;
} }
.data-label { .data-label {
display: flex; display: flex;
align-items: center; align-items: center;
font-size: 0.8rem;
color: rgba(var(--v-theme-on-surface), 0.8); color: rgba(var(--v-theme-on-surface), 0.8);
min-width: 70px; font-size: 0.8rem;
min-inline-size: 70px;
} }
.data-progress-bar { .data-progress-bar {
position: relative; position: relative;
height: 4px;
overflow: hidden; overflow: hidden;
flex-grow: 1;
border-radius: 4px; border-radius: 4px;
background: rgba(var(--v-theme-on-surface), 0.08); background: rgba(var(--v-theme-on-surface), 0.08);
flex-grow: 1; block-size: 4px;
} }
.progress-filled { .progress-filled {
position: absolute; position: absolute;
left: 0;
top: 0;
height: 100%;
min-width: 3px;
border-radius: 4px;
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
overflow: hidden; overflow: hidden;
border-radius: 4px;
block-size: 100%;
inset-block-start: 0;
inset-inline-start: 0;
min-inline-size: 3px;
transition: inline-size 0.5s cubic-bezier(0.4, 0, 0.2, 1);
} }
.upload-filled { .upload-filled {
background: linear-gradient(90deg, #4d79ff, #0077ff);
box-shadow: 0 0 4px rgba(0, 119, 255, 0.5);
animation: pulse-width 2s infinite; animation: pulse-width 2s infinite;
background: linear-gradient(90deg, #4d79ff, #07f);
box-shadow: 0 0 4px rgba(0, 119, 255, 50%);
} }
.download-filled { .download-filled {
background: linear-gradient(90deg, #42d392, #00b77e);
box-shadow: 0 0 4px rgba(0, 183, 126, 0.5);
animation: pulse-width 2s infinite; animation: pulse-width 2s infinite;
background: linear-gradient(90deg, #42d392, #00b77e);
box-shadow: 0 0 4px rgba(0, 183, 126, 50%);
} }
.progress-glow { .progress-glow {
position: absolute; position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
background-size: 200% 100%;
animation: shimmer 1.5s linear infinite; animation: shimmer 1.5s linear infinite;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 50%), transparent);
background-size: 200% 100%;
inset: 0;
} }
@keyframes pulse-width { @keyframes pulse-width {
@@ -530,6 +528,7 @@ onMounted(() => {
100% { 100% {
opacity: 0.85; opacity: 0.85;
} }
50% { 50% {
opacity: 1; opacity: 1;
} }
@@ -539,6 +538,7 @@ onMounted(() => {
0% { 0% {
background-position: -100% 0; background-position: -100% 0;
} }
100% { 100% {
background-position: 100% 0; background-position: 100% 0;
} }
@@ -546,24 +546,24 @@ onMounted(() => {
/* 速度等级样式 */ /* 速度等级样式 */
.speed-idle { .speed-idle {
width: 5% !important;
opacity: 0.5;
animation: none !important; animation: none !important;
inline-size: 5% !important;
opacity: 0.5;
} }
.speed-low { .speed-low {
width: 30% !important;
animation-duration: 6s !important; animation-duration: 6s !important;
inline-size: 30% !important;
} }
.speed-medium { .speed-medium {
width: 50% !important;
animation-duration: 4s !important; animation-duration: 4s !important;
inline-size: 50% !important;
} }
.speed-high { .speed-high {
width: 70% !important;
animation-duration: 2s !important; animation-duration: 2s !important;
inline-size: 70% !important;
} }
@keyframes pulse-width { @keyframes pulse-width {
@@ -571,6 +571,7 @@ onMounted(() => {
100% { 100% {
transform: scaleX(0.95); transform: scaleX(0.95);
} }
50% { 50% {
transform: scaleX(1.05); transform: scaleX(1.05);
} }
@@ -580,6 +581,7 @@ onMounted(() => {
0% { 0% {
background-position: -200% 0; background-position: -200% 0;
} }
100% { 100% {
background-position: 200% 0; background-position: 200% 0;
} }
@@ -587,14 +589,14 @@ onMounted(() => {
/* 站点图标 */ /* 站点图标 */
.site-icon-container { .site-icon-container {
width: 38px;
height: 38px;
border-radius: 8px;
overflow: hidden;
position: relative; position: relative;
transition: transform 0.2s ease; overflow: hidden;
border-radius: 8px;
block-size: 38px;
box-shadow: 0 1px 4px rgba(0, 0, 0, 6%);
cursor: pointer; cursor: pointer;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); inline-size: 38px;
transition: transform 0.2s ease;
} }
.site-icon-container:hover { .site-icon-container:hover {
@@ -602,18 +604,18 @@ onMounted(() => {
} }
.site-icon { .site-icon {
width: 100%; block-size: 100%;
height: 100%; inline-size: 100%;
object-fit: cover; object-fit: cover;
} }
.site-icon-edit-overlay { .site-icon-edit-overlay {
position: absolute; position: absolute;
inset: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background-color: rgba(0, 0, 0, 0.5); background-color: rgba(0, 0, 0, 50%);
inset: 0;
opacity: 0; opacity: 0;
transition: opacity 0.2s ease; transition: opacity 0.2s ease;
} }
@@ -631,10 +633,10 @@ onMounted(() => {
/* 站点网址 */ /* 站点网址 */
.site-url { .site-url {
font-size: 0.9rem;
color: rgba(var(--v-theme-on-surface), 0.6); color: rgba(var(--v-theme-on-surface), 0.6);
transition: color 0.2s ease;
cursor: pointer; cursor: pointer;
font-size: 0.9rem;
transition: color 0.2s ease;
} }
.site-url:hover { .site-url:hover {
@@ -643,46 +645,47 @@ onMounted(() => {
/* 站点特性图标 */ /* 站点特性图标 */
.site-feature-icon { .site-feature-icon {
opacity: 0.85;
color: rgba(var(--v-theme-primary), 0.95); color: rgba(var(--v-theme-primary), 0.95);
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 5%));
margin-block: 0;
margin-inline: 1px;
opacity: 0.85;
transition: all 0.2s ease; transition: all 0.2s ease;
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.05));
margin: 0 1px;
} }
.site-feature-icon:hover { .site-feature-icon:hover {
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 10%));
opacity: 1; opacity: 1;
transform: translateY(-1px); transform: translateY(-1px);
filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
} }
/* 特性标签 */ /* 特性标签 */
.site-features { .site-features {
margin-top: 0; margin-block-start: 0;
} }
/* 数据统计 */ /* 数据统计 */
.site-stats { .site-stats {
margin-top: auto; border-block-start: 1px solid rgba(var(--v-theme-on-surface), 0.05);
border-top: 1px solid rgba(var(--v-theme-on-surface), 0.05); margin-block-start: auto;
padding-top: 6px; padding-block-start: 6px;
} }
.site-data-values { .site-data-values {
font-size: 12px;
color: rgba(var(--v-theme-on-surface), 0.8); color: rgba(var(--v-theme-on-surface), 0.8);
font-size: 12px;
} }
.site-data-bar { .site-data-bar {
height: 3px;
border-radius: 1.5px;
overflow: hidden; overflow: hidden;
border-radius: 1.5px;
block-size: 3px;
} }
.site-data-bar-bg { .site-data-bar-bg {
position: absolute; position: absolute;
inset: 0;
background-color: rgba(var(--v-theme-on-surface), 0.05); background-color: rgba(var(--v-theme-on-surface), 0.05);
inset: 0;
} }
.site-data-bar-upload { .site-data-bar-upload {
@@ -709,103 +712,101 @@ onMounted(() => {
/* 操作按钮 */ /* 操作按钮 */
.site-card-actions { .site-card-actions {
position: absolute; position: absolute;
right: 0; z-index: 20;
top: 0;
bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding: 8px 4px;
background: rgba(var(--v-theme-surface), 0.97); background: rgba(var(--v-theme-surface), 0.97);
border-inline-start: 1px solid rgba(var(--v-theme-on-surface), 0.06);
inset-block: 0;
inset-inline-end: 0;
padding-block: 8px;
padding-inline: 4px;
transform: translateX(100%); transform: translateX(100%);
transition: transform 0.2s ease; transition: transform 0.2s ease;
z-index: 20;
border-left: 1px solid rgba(var(--v-theme-on-surface), 0.06);
} }
/* 测试按钮特殊样式 */ /* 测试按钮特殊样式 */
.test-btn { .test-btn {
width: 40px !important; position: relative;
min-width: 40px;
height: 40px !important;
padding: 0;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
position: relative; padding: 0;
border-radius: 50% !important; border-radius: 50% !important;
margin-bottom: 12px; block-size: 40px !important;
inline-size: 40px !important;
margin-block-end: 12px;
min-inline-size: 40px;
} }
.test-btn-content { .test-btn-content {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 100%; block-size: 100%;
height: 100%; inline-size: 100%;
} }
.loading-overlay { .loading-overlay {
position: absolute; position: absolute;
top: 0; z-index: 10;
left: 0;
right: 0;
bottom: 0;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: rgba(var(--v-theme-surface), 0.95);
border-radius: 50%; border-radius: 50%;
z-index: 10;
animation: fade-in 0.2s ease; animation: fade-in 0.2s ease;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); background: rgba(var(--v-theme-surface), 0.95);
box-shadow: 0 2px 10px rgba(0, 0, 0, 10%);
inset: 0;
} }
.loading-spinner { .loading-spinner {
position: relative; position: relative;
width: 24px; block-size: 24px;
height: 24px; inline-size: 24px;
} }
.spinner-circle { .spinner-circle {
position: absolute; position: absolute;
width: 100%;
height: 100%;
border: 2px solid rgba(var(--v-theme-primary), 0.2); border: 2px solid rgba(var(--v-theme-primary), 0.2);
border-top-color: rgba(var(--v-theme-primary), 1);
border-radius: 50%; border-radius: 50%;
animation: spin 0.8s linear infinite; animation: spin 0.8s linear infinite;
block-size: 100%;
border-block-start-color: rgba(var(--v-theme-primary), 1);
inline-size: 100%;
} }
.spinner-circle-dot { .spinner-circle-dot {
position: absolute; position: absolute;
top: 0;
left: 50%;
width: 4px;
height: 4px;
margin-left: -2px;
margin-top: -2px;
background-color: rgba(var(--v-theme-primary), 1);
border-radius: 50%; border-radius: 50%;
animation: spin 0.8s linear infinite reverse; animation: spin 0.8s linear infinite reverse;
background-color: rgba(var(--v-theme-primary), 1);
block-size: 4px;
inline-size: 4px;
inset-block-start: 0;
inset-inline-start: 50%;
margin-block-start: -2px;
margin-inline-start: -2px;
} }
@keyframes spin { @keyframes spin {
0% { 0% {
transform: rotate(0deg); transform: rotate(0deg);
} }
100% { 100% {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
.loading-text { .loading-text {
position: absolute;
color: rgba(var(--v-theme-primary), 1);
font-size: 12px; font-size: 12px;
font-weight: 500; font-weight: 500;
margin-top: 4px; inset-block-end: -20px;
color: rgba(var(--v-theme-primary), 1); margin-block-start: 4px;
position: absolute;
bottom: -20px;
white-space: nowrap; white-space: nowrap;
} }
@@ -813,40 +814,41 @@ onMounted(() => {
from { from {
opacity: 0; opacity: 0;
} }
to { to {
opacity: 1; opacity: 1;
} }
} }
.pulse-dot { .pulse-dot {
width: 22px;
height: 22px;
border-radius: 50%;
position: relative; position: relative;
border-radius: 50%;
background-color: transparent; background-color: transparent;
block-size: 22px;
box-shadow: inset 0 0 0 2px rgba(var(--v-theme-on-surface), 0.1); box-shadow: inset 0 0 0 2px rgba(var(--v-theme-on-surface), 0.1);
inline-size: 22px;
} }
.pulse-dot::before { .pulse-dot::before {
content: '';
position: absolute; position: absolute;
width: 70%;
height: 70%;
top: 15%;
left: 15%;
border-radius: 50%;
z-index: 1; z-index: 1;
border-radius: 50%;
block-size: 70%;
content: '';
inline-size: 70%;
inset-block-start: 15%;
inset-inline-start: 15%;
} }
.pulse-dot::after { .pulse-dot::after {
content: '';
position: absolute; position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
border-radius: 50%;
z-index: 2; z-index: 2;
border-radius: 50%;
block-size: 100%;
content: '';
inline-size: 100%;
inset-block-start: 0;
inset-inline-start: 0;
} }
.pulse-dot.error::before { .pulse-dot.error::before {
@@ -855,8 +857,8 @@ onMounted(() => {
} }
.pulse-dot.error::after { .pulse-dot.error::after {
box-shadow: 0 0 0 2px rgba(var(--v-theme-error), 0.3);
animation: pulse-animation-error 2s infinite; animation: pulse-animation-error 2s infinite;
box-shadow: 0 0 0 2px rgba(var(--v-theme-error), 0.3);
} }
.pulse-dot.warning::before { .pulse-dot.warning::before {
@@ -865,8 +867,8 @@ onMounted(() => {
} }
.pulse-dot.warning::after { .pulse-dot.warning::after {
box-shadow: 0 0 0 2px rgba(var(--v-theme-warning), 0.3);
animation: pulse-animation-warning 2s infinite; animation: pulse-animation-warning 2s infinite;
box-shadow: 0 0 0 2px rgba(var(--v-theme-warning), 0.3);
} }
.pulse-dot.success::before { .pulse-dot.success::before {
@@ -875,8 +877,8 @@ onMounted(() => {
} }
.pulse-dot.success::after { .pulse-dot.success::after {
box-shadow: 0 0 0 2px rgba(var(--v-theme-success), 0.3);
animation: pulse-animation-success 2s infinite; animation: pulse-animation-success 2s infinite;
box-shadow: 0 0 0 2px rgba(var(--v-theme-success), 0.3);
} }
.pulse-dot.secondary::before { .pulse-dot.secondary::before {
@@ -885,17 +887,19 @@ onMounted(() => {
} }
.pulse-dot.secondary::after { .pulse-dot.secondary::after {
box-shadow: 0 0 0 2px rgba(var(--v-theme-secondary), 0.3);
animation: pulse-animation-secondary 2s infinite; animation: pulse-animation-secondary 2s infinite;
box-shadow: 0 0 0 2px rgba(var(--v-theme-secondary), 0.3);
} }
@keyframes pulse-animation-error { @keyframes pulse-animation-error {
0% { 0% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-error), 0.6); box-shadow: 0 0 0 0 rgba(var(--v-theme-error), 0.6);
} }
70% { 70% {
box-shadow: 0 0 0 10px rgba(var(--v-theme-error), 0); box-shadow: 0 0 0 10px rgba(var(--v-theme-error), 0);
} }
100% { 100% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-error), 0); box-shadow: 0 0 0 0 rgba(var(--v-theme-error), 0);
} }
@@ -905,9 +909,11 @@ onMounted(() => {
0% { 0% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-warning), 0.6); box-shadow: 0 0 0 0 rgba(var(--v-theme-warning), 0.6);
} }
70% { 70% {
box-shadow: 0 0 0 10px rgba(var(--v-theme-warning), 0); box-shadow: 0 0 0 10px rgba(var(--v-theme-warning), 0);
} }
100% { 100% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-warning), 0); box-shadow: 0 0 0 0 rgba(var(--v-theme-warning), 0);
} }
@@ -917,9 +923,11 @@ onMounted(() => {
0% { 0% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-success), 0.6); box-shadow: 0 0 0 0 rgba(var(--v-theme-success), 0.6);
} }
70% { 70% {
box-shadow: 0 0 0 10px rgba(var(--v-theme-success), 0); box-shadow: 0 0 0 10px rgba(var(--v-theme-success), 0);
} }
100% { 100% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-success), 0); box-shadow: 0 0 0 0 rgba(var(--v-theme-success), 0);
} }
@@ -929,9 +937,11 @@ onMounted(() => {
0% { 0% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-secondary), 0.6); box-shadow: 0 0 0 0 rgba(var(--v-theme-secondary), 0.6);
} }
70% { 70% {
box-shadow: 0 0 0 10px rgba(var(--v-theme-secondary), 0); box-shadow: 0 0 0 10px rgba(var(--v-theme-secondary), 0);
} }
100% { 100% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-secondary), 0); box-shadow: 0 0 0 0 rgba(var(--v-theme-secondary), 0);
} }
@@ -942,37 +952,37 @@ onMounted(() => {
} }
.site-action-btn { .site-action-btn {
width: 36px; position: relative;
height: 36px;
display: flex; display: flex;
overflow: hidden;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
border-radius: 8px;
margin-bottom: 8px;
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
background-color: rgba(var(--v-theme-surface), 1);
color: rgba(var(--v-theme-on-surface), 0.8);
border: none; border: none;
border-radius: 8px;
background-color: rgba(var(--v-theme-surface), 1);
block-size: 36px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 5%);
color: rgba(var(--v-theme-on-surface), 0.8);
cursor: pointer; cursor: pointer;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); inline-size: 36px;
position: relative; margin-block-end: 8px;
overflow: hidden; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
} }
.site-action-btn::before { .site-action-btn::before {
content: '';
position: absolute; position: absolute;
inset: 0;
background: radial-gradient(circle at center, rgba(var(--v-theme-primary), 0.1), transparent 70%); background: radial-gradient(circle at center, rgba(var(--v-theme-primary), 0.1), transparent 70%);
content: '';
inset: 0;
opacity: 0; opacity: 0;
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
} }
.site-action-btn:hover { .site-action-btn:hover {
background-color: white; background-color: white;
box-shadow: 0 3px 6px rgba(0, 0, 0, 10%);
color: rgba(var(--v-theme-primary), 1); color: rgba(var(--v-theme-primary), 1);
transform: translateY(-2px); transform: translateY(-2px);
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
} }
.site-action-btn:hover::before { .site-action-btn:hover::before {
@@ -987,31 +997,32 @@ onMounted(() => {
0% { 0% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0.4); box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0.4);
} }
70% { 70% {
box-shadow: 0 0 0 6px rgba(var(--v-theme-primary), 0); box-shadow: 0 0 0 6px rgba(var(--v-theme-primary), 0);
} }
100% { 100% {
box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0); box-shadow: 0 0 0 0 rgba(var(--v-theme-primary), 0);
} }
} }
.site-action-btn.more-btn { .site-action-btn.more-btn {
margin-bottom: 0; margin-block: auto 0;
margin-top: auto;
} }
.dropdown-menu { .dropdown-menu {
border-radius: 8px;
overflow: hidden; overflow: hidden;
border-radius: 8px;
} }
.feature-icon-wrapper { .feature-icon-wrapper {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 24px;
height: 24px;
border-radius: 4px; border-radius: 4px;
block-size: 24px;
inline-size: 24px;
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
} }