Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions tests/unit/config-tabs-ui.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ test('config template keeps expected config tabs in top and side navigation', ()
assert.match(html, /@blur="onModelAutoCompactTokenLimitBlur"/);
assert.match(html, /@keydown\.enter\.prevent="onModelContextWindowBlur"/);
assert.match(html, /@keydown\.enter\.prevent="onModelAutoCompactTokenLimitBlur"/);
assert.doesNotMatch(html, /使用自定义数字输入框;失焦或回车后会按当前 Codex 配置规范写入模板。/);
assert.match(
html,
/<button[^>]*@click="resetCodexContextBudgetDefaults"[^>]*>[\s\S]*?重置默认值[\s\S]*?<\/button>/
Expand Down Expand Up @@ -334,11 +335,11 @@ test('settings tab header actions keep compact tool buttons inline on wider scre
styles,
/\.settings-tab-actions \.btn-tool,\s*\.settings-tab-actions \.btn-tool-compact\s*\{[\s\S]*width:\s*auto;/
);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*display:\s*inline-grid;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*grid-auto-flow:\s*column;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*grid-auto-columns:\s*minmax\(0,\s*max-content\);/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*display:\s*flex;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*flex-direction:\s*row;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*flex-wrap:\s*nowrap;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*align-items:\s*stretch;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*justify-content:\s*end;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*justify-content:\s*flex-end;/);
assert.match(styles, /\.trash-header-actions\s*\{[\s\S]*max-width:\s*100%;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact\s*\{[\s\S]*display:\s*flex;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact\s*\{[\s\S]*align-self:\s*stretch;/);
Expand All @@ -352,6 +353,7 @@ test('settings tab header actions keep compact tool buttons inline on wider scre
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact\s*\{[\s\S]*vertical-align:\s*top;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact\s*\{[\s\S]*top:\s*0;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact\s*\{[\s\S]*white-space:\s*nowrap;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool \+ \.btn-tool\s*\{[\s\S]*margin-top:\s*0;/);
assert.match(styles, /\.selector-header \.trash-header-actions > \.btn-tool:hover,\s*\.selector-header \.trash-header-actions > \.btn-tool-compact:hover\s*\{[\s\S]*transform:\s*none;/);
assert.match(styles, /\.market-grid\s*\{[\s\S]*grid-template-columns:\s*repeat\(2,\s*minmax\(0,\s*1fr\)\);/);
assert.match(styles, /\.market-action-grid\s*\{[\s\S]*grid-template-columns:\s*repeat\(3,\s*minmax\(0,\s*1fr\)\);/);
Expand Down
3 changes: 0 additions & 3 deletions web-ui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,9 +512,6 @@ <h1 class="main-title">
<div class="form-hint">控制自动压缩触发阈值,默认 185000。</div>
</div>
</div>
<div class="config-template-hint">
使用自定义数字输入框;失焦或回车后会按当前 Codex 配置规范写入模板。
</div>
</div>

<div class="selector-section">
Expand Down
12 changes: 8 additions & 4 deletions web-ui/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -1522,11 +1522,11 @@ body::after {
}

.trash-header-actions {
display: inline-grid;
grid-auto-flow: column;
grid-auto-columns: minmax(0, max-content);
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
justify-content: end;
justify-content: flex-end;
width: auto;
max-width: 100%;
margin-left: auto;
Expand Down Expand Up @@ -1794,6 +1794,10 @@ body::after {
margin-top: var(--spacing-xs);
}

.selector-header .trash-header-actions > .btn-tool + .btn-tool {
margin-top: 0;
}

.btn-tool:hover {
border-color: var(--color-brand);
color: var(--color-brand);
Expand Down
Loading