Refine memory LLM preset layout

This commit is contained in:
Youzini-afk
2026-04-07 11:29:12 +08:00
parent 95205de1df
commit f93b26a52c
2 changed files with 44 additions and 35 deletions

View File

@@ -578,33 +578,35 @@
>
<option value="">-- 手动模式 --</option>
</select>
<button
id="bme-llm-preset-save"
class="bme-config-secondary-btn"
title="覆盖保存当前模板"
type="button"
>
<i class="fa-solid fa-floppy-disk"></i>
<span>保存</span>
</button>
<button
id="bme-llm-preset-save-as"
class="bme-config-secondary-btn"
title="另存为新模板"
type="button"
>
<i class="fa-solid fa-file-circle-plus"></i>
<span>另存为</span>
</button>
<button
id="bme-llm-preset-delete"
class="bme-config-secondary-btn"
title="删除当前模板"
type="button"
>
<i class="fa-solid fa-trash-can"></i>
<span>删除</span>
</button>
<div class="bme-llm-preset-actions">
<button
id="bme-llm-preset-save"
class="bme-config-secondary-btn"
title="覆盖保存当前模板"
type="button"
>
<i class="fa-solid fa-floppy-disk"></i>
<span>保存</span>
</button>
<button
id="bme-llm-preset-save-as"
class="bme-config-secondary-btn"
title="另存为新模板"
type="button"
>
<i class="fa-solid fa-file-circle-plus"></i>
<span>另存为</span>
</button>
<button
id="bme-llm-preset-delete"
class="bme-config-secondary-btn"
title="删除当前模板"
type="button"
>
<i class="fa-solid fa-trash-can"></i>
<span>删除</span>
</button>
</div>
</div>
</div>
<div class="bme-config-row">

View File

@@ -1424,18 +1424,25 @@
}
.bme-llm-preset-controls {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 8px;
}
.bme-llm-preset-controls select {
min-width: 0;
width: 100%;
}
.bme-llm-preset-actions {
display: flex;
align-items: center;
gap: 6px;
flex-wrap: wrap;
}
.bme-llm-preset-controls select {
flex: 1;
min-width: 0;
}
.bme-llm-preset-controls .bme-config-secondary-btn {
.bme-llm-preset-actions .bme-config-secondary-btn {
flex-shrink: 0;
}
@@ -2896,12 +2903,12 @@
width: 100%;
}
.bme-llm-preset-controls {
.bme-llm-preset-actions {
flex-direction: column;
align-items: stretch;
}
.bme-llm-preset-controls .bme-config-secondary-btn {
.bme-llm-preset-actions .bme-config-secondary-btn {
width: 100%;
}