🐛 fix: 修复仪表盘刷新按钮间距
* 恢复桌面刷新按钮的左右留白和图标文字间距 * 保持手机端图标与加载动画居中,避免挤压和换行 * 验证深浅主题、三种屏宽及刷新请求与加载状态
This commit is contained in:
1 parent
4fefcd0f0a
commit
fe6d812857
3 files changed
+48
-1
No files matched your search
@@ -15,7 +15,7 @@
|
||||
:loading="isDashboardRefreshing"
|
||||
:title="t('admin.dashboard.refresh')"
|
||||
:aria-label="t('admin.dashboard.refresh')"
|
||||
class="fcb-icon-action shrink-0 max-sm:h-11 max-sm:w-11 max-sm:!px-0"
|
||||
class="fcb-dashboard-refresh shrink-0 whitespace-nowrap"
|
||||
@click="refreshDashboardPage"
|
||||
>
|
||||
<template #icon>
|
||||
@@ -689,3 +689,18 @@ onMounted(() => {
|
||||
void refreshDashboardPage()
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
@media (max-width: 639px) {
|
||||
.fcb-dashboard-refresh {
|
||||
width: var(--fcb-control-size);
|
||||
height: var(--fcb-control-size) !important;
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.fcb-dashboard-refresh :deep(svg),
|
||||
.fcb-dashboard-refresh :deep(.animate-spin) {
|
||||
margin-inline: 0 !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user