Skip to content

Commit 233337d

Browse files
committed
fix EasyMDE statusbar margin
1 parent 1f3943c commit 233337d

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

templates/repo/issue/comment_tab.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
{{end}}
1515
{{end}}
1616
{{if .IsAttachmentEnabled}}
17-
<div class="field not-under-easymde">
17+
<div class="field">
1818
{{template "repo/upload" .}}
1919
</div>
2020
{{end}}

web_src/less/codemirror/base.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
.ui .field:not(:last-child) .EasyMDEContainer .editor-statusbar {
2+
margin-bottom: -1em; // when there is a statusbar, the "margin-bottom: 1em" of the "field" is not needed, because the statusbar is likely a blank line
3+
}
4+
15
.EasyMDEContainer .CodeMirror {
26
color: var(--color-input-text);
37
background-color: var(--color-input-background);

web_src/less/features/dropzone.less

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,12 @@
66
padding: 0;
77
border-radius: 4px;
88
min-height: 0;
9-
margin-top: -1em; // we have another `field` above, it's usually an EasyMDE editor with "status bar", so we do not need the space above.
109
.dz-message {
1110
margin: 10px 0;
1211
}
1312
}
1413
}
1514

16-
.ui .field.not-under-easymde {
17-
.dropzone {
18-
margin-top: 0; // the `field` above isn't an EasyMDE editor
19-
}
20-
}
21-
2215
.dropzone .dz-button {
2316
color: var(--color-text-light) !important;
2417
}

0 commit comments

Comments
 (0)