fix(admin): 工具栏按钮尺寸统一(同宽同高同字重),违禁词页添加按钮贴近输入框
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
@@ -386,7 +386,7 @@ button:not(:disabled), [role="button"]:not([aria-disabled="true"]) { cursor: poi
|
|||||||
background-position: 11px center;
|
background-position: 11px center;
|
||||||
background-size: 16px;
|
background-size: 16px;
|
||||||
}
|
}
|
||||||
.toolbar :is(.btn-soft, .btn-primary) { height: 36px; padding: 0 14px; font-size: 13px; }
|
.toolbar :is(.btn-soft, .btn-primary) { height: 36px; min-width: 88px; padding: 0 16px; font-size: 13px; font-weight: 700; box-shadow: none; }
|
||||||
.toolbar > .flex-1 { flex: 0 1 300px; min-width: 200px; }
|
.toolbar > .flex-1 { flex: 0 1 300px; min-width: 200px; }
|
||||||
.toolbar > .w-44 { flex: 0 1 240px; width: auto; }
|
.toolbar > .w-44 { flex: 0 1 240px; width: auto; }
|
||||||
.toolbar > .btn-primary { margin-left: auto; }
|
.toolbar > .btn-primary { margin-left: auto; }
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ onMounted(load)
|
|||||||
|
|
||||||
<div class="card toolbar">
|
<div class="card toolbar">
|
||||||
<input v-model="newWord" @keyup.enter="add" class="field w-72" placeholder="输入违禁词后回车添加" />
|
<input v-model="newWord" @keyup.enter="add" class="field w-72" placeholder="输入违禁词后回车添加" />
|
||||||
<button @click="add" class="btn-primary shrink-0">+ 添加</button>
|
<button @click="add" class="btn-primary shrink-0 !ml-0">+ 添加</button>
|
||||||
<button @click="importOpen = true" class="btn-soft shrink-0">批量导入</button>
|
<button @click="importOpen = true" class="btn-soft shrink-0">批量导入</button>
|
||||||
<button v-if="selected.size" @click="delSelected" class="btn-soft danger shrink-0 ml-auto" title="删除选中的违禁词">
|
<button v-if="selected.size" @click="delSelected" class="btn-soft danger shrink-0 ml-auto" title="删除选中的违禁词">
|
||||||
<Icon name="trash" class="w-3.5 h-3.5" /> 删除选中 ({{ selected.size }})
|
<Icon name="trash" class="w-3.5 h-3.5" /> 删除选中 ({{ selected.size }})
|
||||||
|
|||||||
Reference in New Issue
Block a user