Skip to content

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

Python

Chip primitive + detail header: visible polish — earlier chip rewrite was correct but visually too quiet to read as a deliberate change; this pass gives chips real presence; CHIP CHANGES; vertical padding 1px → 2px (slightly chunkier so they sit forward of the surrounding text-metadata band); horizontal padding 6px → 8px (more breathing room for the label), with 7px on the icon side to compensate visually for the icon's leading whitespace; gap between icon and label 4px → 5px; line-height 1.55 → 1.4 (tighter, more chip-like); letter-spacing 0.01em (subtle legibility on coloured backgrounds); line of inset box-shadow at rgba(0,0,0,0.12) gives the chip a defined edge on any user-chosen background colour without committing to a full border; on hover the inset shadow strengthens to 0.20 instead of just dropping opacity, which reads better than fade-only; icon opacity 0.85 so the icon sits slightly behind the label; DETAIL HEADER: added a 1px vertical divider between the chip group and the text-metadata items (participants / date / file size / etc.) using bg-[var(--border-primary)] with 60% opacity, self-stretching to match line height and shown only when there ARE chips to separate from — this is the visual cue the row was lacking, so the eye reads chips on one side and meta on the other instead of one undifferentiated row of stuff

Murtaza Nasirf61e21d0dec4
diff --git a/static/css/primitives.css b/static/css/primitives.css
index 24c1ee28..7901e9d5 100644
--- a/static/css/primitives.css
+++ b/static/css/primitives.css
@@ -750,20 +750,26 @@ html.dark select.field {
.chip {
display: inline-flex;
align-items: center;
- gap: 4px;
- padding: 1px var(--sp-2);
+ gap: 5px;
+ padding: 2px 8px 2px 7px;
border-radius: var(--radius-sm);
font-size: var(--fs-label);
font-weight: 600;
- line-height: 1.55;
+ line-height: 1.4;
+ letter-spacing: 0.01em;
white-space: nowrap;
max-width: 14rem;
- transition: opacity 0.15s ease, transform 0.05s ease;
+ /* Hairline outline at 12% black; reads on any custom background
+ colour and gives the chip a defined edge without committing to
+ a heavy border. */
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12);
+ transition: opacity 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}
.chip > i {
font-size: 0.78em;
line-height: 0;
+ opacity: 0.85;
}
.chip > .chip__label {
@@ -776,7 +782,8 @@ html.dark select.field {
}
.chip--clickable:hover {
- opacity: 0.85;
+ opacity: 0.92;
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
}
.chip--clickable:active {
diff --git a/templates/components/detail/desktop-header.html b/templates/components/detail/desktop-header.html
index 0817fca7..a0c47681 100644
--- a/templates/components/detail/desktop-header.html
+++ b/templates/components/detail/desktop-header.html
@@ -188,6 +188,14 @@
<span class="chip__label">${tag.name}</span>
</span>
+ <!-- Vertical separator between the chip group and the
+ text-metadata items so the two reads as distinct bands
+ even when they sit on the same wrapped line. Hidden
+ when there are no preceding chips to separate from. -->
+ <span v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || selectedRecording.is_shared || selectedRecording.shared_with_count > 0 || selectedRecording.public_share_count > 0 || selectedRecording.has_group_tags || (selectedRecording.tags && selectedRecording.tags.length > 0)"
+ aria-hidden="true"
+ class="self-stretch w-px bg-[var(--border-primary)] opacity-60 my-0.5"></span>
+
<!-- Participants -->
<span class="inline-flex items-center gap-1.5">
<i class="fas fa-users text-[var(--text-accent)] text-[11px]"></i>