2
0

fix(actions): improve Clear Old Success button styling

- Fixed dropdown width to 100px
- Button now uses flex: 1 to fill remaining space
- Added flex-wrap: nowrap to keep elements on same line

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
GitCaddy
2026-01-15 01:48:00 +00:00
parent 388ea5264b
commit 010c47e6d8

View File

@@ -42,8 +42,8 @@
{{svg "octicon-trash" 14}} {{ctx.Locale.Tr "actions.runs.clear_failed"}}
</button>
<div class="ui divider"></div>
<div class="tw-flex tw-items-center tw-gap-2">
<select id="clear-old-success-days" class="ui compact dropdown tw-flex-shrink-0" style="min-width: 90px;">
<div class="tw-flex tw-items-center tw-gap-2" style="flex-wrap: nowrap;">
<select id="clear-old-success-days" class="ui compact dropdown" style="width: 100px; flex-shrink: 0;">
<option value="1">1 day</option>
<option value="3">3 days</option>
<option value="5" selected>5 days</option>
@@ -51,7 +51,7 @@
<option value="14">14 days</option>
<option value="30">30 days</option>
</select>
<button id="clear-old-success-btn" class="ui small button tw-flex-grow" style="background-color: #21ba45; color: white;">
<button id="clear-old-success-btn" class="ui small green button" style="flex: 1;">
{{svg "octicon-trash" 14}} {{ctx.Locale.Tr "actions.runs.clear_old_success"}}
</button>
</div>