mobile: fix styles in editor

This commit is contained in:
Ammar Ahmed
2025-10-23 21:58:27 +05:00
parent 8900a6b080
commit 8cd8e93487
4 changed files with 14 additions and 17 deletions

View File

@@ -34,7 +34,11 @@
} }
.ProseMirror > :first-child { .ProseMirror > :first-child {
margin-top: 0.4em !important; margin-top: 5px !important;
}
.ProseMirror:first-child {
margin-top: 0px !important;
} }
#root { #root {

View File

@@ -580,7 +580,8 @@ const Tiptap = ({
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
padding: "0px 16px", padding: "0px 16px",
paddingBottom: "6px" paddingBottom: "3px",
boxSizing: "border-box"
}} }}
> >
<StatusBar <StatusBar

View File

@@ -77,26 +77,19 @@ function StatusBar({
fontSize: 12, fontSize: 12,
color: "var(--nn_secondary_paragraph)", color: "var(--nn_secondary_paragraph)",
paddingBottom: 0, paddingBottom: 0,
fontFamily: "Inter",
userSelect: "none" userSelect: "none"
}; };
return ( return (
<div <p
style={{ onMouseDown={(e) => {
display: "flex", setShowChars(!showChars);
height: "25px",
alignItems: "center"
}} }}
style={paragraphStyle}
> >
<p {showChars ? strings.charactersCount(chars) : words}
onMouseDown={(e) => { </p>
setShowChars(!showChars);
}}
style={paragraphStyle}
>
{showChars ? strings.charactersCount(chars) : words}
</p>
</div>
); );
} }

View File

@@ -55,7 +55,6 @@ function Tags(props: { settings: Settings; loading?: boolean }) {
style={{ style={{
display: "flex", display: "flex",
alignItems: "center", alignItems: "center",
minHeight: "25px",
opacity: props.loading ? 0 : 1, opacity: props.loading ? 0 : 1,
gap: 6 gap: 6
}} }}