Skip to content

Commit a86b7ca

Browse files
Apply suggestions from code review
Co-authored-by: silverwind <[email protected]>
1 parent 16b245c commit a86b7ca

File tree

3 files changed

+4
-11
lines changed

3 files changed

+4
-11
lines changed

templates/devtest/gitea-ui.tmpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
{{template "base/head" .}}
2-
32
<div class="page-content devtest">
4-
53
<div>
64
<gitea-origin-url data-url="test/url"></gitea-origin-url>
75
<gitea-origin-url data-url="/test/url"></gitea-origin-url>
86
</div>
9-
107
<div>
118
<span data-tooltip-content="test tooltip">text with tooltip</span>
129
</div>
13-
1410
{{template "shared/combomarkdowneditor" .}}
15-
1611
</div>
17-
1812
{{template "base/footer" .}}

templates/shared/combomarkdowneditor.tmpl

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ Template Attributes:
77
* DropzoneParentContainer: for file upload (leave it empty if no upload)
88
*/}}
99
<div {{if .ContainerId}}id="{{.ContainerId}}"{{end}} class="combo-markdown-editor {{.ContainerClasses}}" data-dropzone-parent-container="{{.DropzoneParentContainer}}">
10-
1110
{{if .MarkdownPreviewUrl}}
1211
<div class="ui top tabular menu">
1312
<a class="active item" data-tab="markdown-writer">{{.locale.Tr "write"}}</a>
1413
<a class="item" data-tab="markdown-previewer" data-preview-url="{{.MarkdownPreviewUrl}}" data-preview-context="{{.MarkdownPreviewContext}}">{{.locale.Tr "preview"}}</a>
1514
</div>
1615
{{end}}
17-
1816
<div class="ui tab active" data-tab="markdown-writer">
1917
<markdown-toolbar class="gt-df">
2018
<div class="markdown-toolbar-group">
@@ -43,9 +41,7 @@ Template Attributes:
4341
</markdown-toolbar>
4442
<textarea class="markdown-text-editor js-quick-submit" name="{{.TextareaName}}" placeholder="{{.TextareaPlaceholder}}">{{.TextareaContent}}</textarea>
4543
</div>
46-
4744
<div class="ui tab markup" data-tab="markdown-previewer">
4845
{{.locale.Tr "loading"}}
4946
</div>
50-
5147
</div>

web_src/css/editor-markdown.css

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
.combo-markdown-editor {
22
width: 100%;
33
}
4+
45
.combo-markdown-editor markdown-toolbar {
56
cursor: default;
67
display: block;
78
padding-bottom: 10px;
89
}
10+
911
.combo-markdown-editor .markdown-toolbar-group {
1012
display: inline-block;
1113
}
14+
1215
.combo-markdown-editor .markdown-toolbar-button {
1316
user-select: none;
1417
padding: 5px;
1518
cursor: pointer;
1619
}
1720

18-
.combo-markdown-editor .markdown-text-editor{
21+
.combo-markdown-editor .markdown-text-editor {
1922
display: block;
2023
width: 100%;
2124
height: 200px;

0 commit comments

Comments
 (0)