Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

fix: chat timestamp chips baseline-align with the sentence (pill wraps the time) instead of a fixed vertical nudge that drifted out of line at other bubble sizes

Murtaza Nasir30b5dc7e354c
diff --git a/static/css/styles.css b/static/css/styles.css
index 95eafee5..a1efe3cb 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -4662,14 +4662,16 @@ select:disabled {
color: var(--text-accent);
border: 1px solid var(--border-accent, var(--border-secondary));
border-radius: 9999px;
- padding: 0 0.55em;
+ padding: 0.14em 0.55em;
font-size: 0.78em;
- line-height: 1.55;
+ /* Baseline-align the chip's own text with the surrounding sentence and
+ let the pill wrap it symmetrically. Unlike a fixed -0.35em nudge on a
+ tall inline-block (the first attempt), this stays optically in-line at
+ every bubble font size and layout. */
+ line-height: 1.1;
+ vertical-align: baseline;
font-family: inherit;
cursor: pointer;
- /* Centre the pill against the surrounding text line (see the
- matching Inquire chip rule for the rationale). */
- vertical-align: -0.35em;
margin: 0 0.1em;
white-space: nowrap;
}