Skip to content

Commit b5fe4bc

Browse files
committed
Fixing editor window size for super widescreen markdown editors
1 parent af8c97d commit b5fe4bc

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "micropad",
3-
"version": "4.5.0",
3+
"version": "4.5.1",
44
"private": true,
55
"scripts": {
66
"preinstall": "python3 ../libs/build-libs.py && ./get_precache_files.py > src/extraPrecacheFiles.ts",

app/src/app/components/note-element-modal/NoteElementModalComponent.css

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,6 @@
4848
opacity: 1;
4949
}
5050

51-
#markdown-editor-label > div {
52-
display: inline;
53-
}
54-
5551
#markdown-help h1, #markdown-help h2, #markdown-help h3, #markdown-help h4, #markdown-help h5, #markdown-help h6 {
5652
margin: 10px;
5753
}

app/src/app/components/note-viewer/elements/markdown/MarkdownElementComponent.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,11 @@
1010
.markdown-element__code-editor > * {
1111
min-height: 400px;
1212
}
13+
14+
#markdown-editor-label {
15+
display: block;
16+
}
17+
18+
#markdown-editor-label > div {
19+
display: inline;
20+
}

app/src/app/components/note-viewer/elements/markdown/MarkdownElementComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default class MarkdownElementComponent extends React.Component<Props> {
104104

105105
{
106106
isEditing &&
107-
<Row style={{ marginBottom: 0, color: theme.text }}>
107+
<Row style={{ marginBottom: 0, color: theme.text, width: minWidth }}>
108108
<Col s={4}>
109109
<TextInput
110110
inputClassName="markdown-element__options-input"

0 commit comments

Comments
 (0)