Skip to content

Commit 8623b93

Browse files
authored
Merge pull request #257 from RivianTrackr/claude/fix-ai-model-select-clip
Fix: AI model select clipping text
2 parents 2647652 + ee604e5 commit 8623b93

2 files changed

Lines changed: 10 additions & 8 deletions

File tree

admin/css/admin-styles.css

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1403,24 +1403,26 @@
14031403
.rtg-ai-model-select {
14041404
min-width: 320px;
14051405
max-width: 100%;
1406-
height: 36px;
1407-
padding: 0 10px;
1406+
/* Let the browser compute height from font + padding so text centers
1407+
reliably across Chrome / Safari / Firefox. Fixed `height` + `line-height`
1408+
on a <select> clips the glyph descenders on some platforms. */
1409+
padding: 8px 10px;
14081410
font-size: 14px;
14091411
line-height: 1.4;
14101412
border: 1px solid var(--rtg-border);
14111413
border-radius: 6px;
14121414
background-color: var(--rtg-bg-input, #fff);
14131415
color: var(--rtg-text-primary);
14141416
}
1415-
/* WordPress .button height is 30px; make the refresh button taller so it
1416-
lines up with our 36px select, and align the dashicon properly. */
1417+
/* Match the refresh button's visual height to the naturally-sized select
1418+
(~36px at 14px / 1.4 with 8px top+bottom padding). */
14171419
.rtg-ai-model-refresh-btn.button {
14181420
display: inline-flex;
14191421
align-items: center;
14201422
gap: 6px;
1421-
height: 36px;
1422-
padding: 0 14px;
1423-
line-height: 1;
1423+
padding: 8px 14px;
1424+
line-height: 1.4;
1425+
font-size: 14px;
14241426
}
14251427
.rtg-ai-model-refresh-btn .dashicons {
14261428
width: 16px;

0 commit comments

Comments
 (0)