Skip to content

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

Python

Fix mobile view toggle buttons to match copy button height and appearance

Murtaza Nasir47350fbb7f91
diff --git a/static/css/styles.css b/static/css/styles.css
index 1dfb3c83..5e8daffc 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -1451,22 +1451,26 @@ body {
background-color: var(--bg-tertiary);
border: 1px solid var(--border-primary);
border-radius: 0.5rem;
- padding: 0.125rem;
- gap: 0.125rem;
+ padding: 0;
+ gap: 0;
}
.toggle-button {
- padding: 0.25rem 0.5rem;
+ padding: 0.35rem 0.75rem;
border: none;
- border-radius: 0.375rem;
+ border-radius: 0.5rem;
background-color: transparent;
- color: var(--text-muted);
- font-size: 0.6875rem;
+ color: var(--text-secondary);
+ font-size: 0.75rem;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
white-space: nowrap;
min-width: 0;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.toggle-button.active {
@@ -1481,8 +1485,12 @@ body {
}
.toggle-button i {
- font-size: 0.625rem;
- margin-right: 0.25rem;
+ font-size: 0.75rem;
+ margin-right: 0;
+}
+.toggle-button span + i,
+.toggle-button i + span {
+ margin-left: 0.25rem;
}
.dark .view-mode-toggle {