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

View File

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