Skip to content

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

Python

Mobile editor: flatten corners so the editor reads as one continuous surface from screen edge to screen edge — on phones the mobile-summary-panel and mobile-notes-panel editing shells span the full viewport width with no horizontal panel padding (changed in the previous commit), so the inherited 0.75rem rounded corners on the EasyMDEContainer + toolbar + CodeMirror looked like a card floating inside the viewport rather than a flat editing surface (visible in the screenshot as a curved top-left / top-right above the toolbar and the matching curves at the bottom of the editor body); new @media (max-width: 640px) rule in primitives.css zeros the border-radius on the four EasyMDE elements at the mobile breakpoint with !important so it wins against the desktop rules at styles.css:3555/3565/3598 and the legacy .mobile-content-box rules at line 2375+; desktop and tablet keep their rounded look unchanged

Murtaza Nasirf825909b5429
diff --git a/static/css/primitives.css b/static/css/primitives.css
index c8ed861c..d075a3bc 100644
--- a/static/css/primitives.css
+++ b/static/css/primitives.css
@@ -1463,3 +1463,21 @@ textarea:focus-visible {
.upload-options-group[open] .upload-options-chevron {
transform: rotate(180deg);
}
+
+
+/* ---- Mobile editor flat corners ----------------------------------------
+ On phones the EasyMDE editor spans screen-edge to screen-edge inside
+ the mobile-summary-panel / mobile-notes-panel editing shells (no
+ horizontal panel padding), so the inherited 0.75rem rounded corners
+ on the EasyMDEContainer + toolbar + CodeMirror look like a card
+ floating inside the viewport instead of a flat editing surface.
+ Flatten them at ≤ 640 px so the editor reads as one continuous
+ surface from edge to edge. */
+@media (max-width: 640px) {
+ .markdown-editor-container .EasyMDEContainer,
+ .markdown-editor-container .EasyMDEContainer .editor-toolbar,
+ .markdown-editor-container .EasyMDEContainer .CodeMirror,
+ .markdown-editor-container .EasyMDEContainer .CodeMirror-scroll {
+ border-radius: 0 !important;
+ }
+}