Polish navbar, mobile experience
This commit is contained in:
+3
-2
@@ -9,10 +9,11 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
height: 2.5lh;
|
height: 1.5rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
gap: 1em;
|
padding: 0.5rem;
|
||||||
|
gap: 1rem;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
background-color: #cde;
|
background-color: #cde;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,6 +31,10 @@ function Editor(props: EditorProps) {
|
|||||||
doc: ydoc.getText().toString(),
|
doc: ydoc.getText().toString(),
|
||||||
extensions: [
|
extensions: [
|
||||||
EditorView.lineWrapping,
|
EditorView.lineWrapping,
|
||||||
|
EditorView.contentAttributes.of({
|
||||||
|
autocapitalize: 'sentences',
|
||||||
|
autocorrect: 'on',
|
||||||
|
}),
|
||||||
history(),
|
history(),
|
||||||
keymap.of([...defaultKeymap, ...historyKeymap]),
|
keymap.of([...defaultKeymap, ...historyKeymap]),
|
||||||
scrollPastEnd(),
|
scrollPastEnd(),
|
||||||
|
|||||||
Reference in New Issue
Block a user