Skip to content

Commit f1bd2df

Browse files
committed
Clean up diff header css and reduce review textarea height
1 parent 658cbdd commit f1bd2df

File tree

5 files changed

+10
-22
lines changed

5 files changed

+10
-22
lines changed

templates/repo/commit_page.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@
184184
</div>
185185
</div>
186186
{{if .Commit.Signature}}
187-
<div class="ui bottom attached message gt-text-left gt-df gt-ac gt-sb commit-header-row gt-fw {{$class}}">
187+
<div class="ui bottom attached message gt-text-left gt-df gt-ac gt-sb commit-header-row gt-fw gt-mb-0 {{$class}}">
188188
<div class="gt-df gt-ac">
189189
{{if .Verification.Verified}}
190190
{{if ne .Verification.SigningUser.ID 0}}

templates/repo/diff/box.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
22
<div>
33
<div class="diff-detail-box diff-box">
4-
<div class="gt-df gt-ac gt-fw">
4+
<div class="gt-df gt-ac gt-fw gt-gap-3 gt-ml-1">
55
{{if $showFileTree}}
66
<button class="diff-toggle-file-tree-button not-mobile btn interact-fg" data-show-text="{{ctx.Locale.Tr "repo.diff.show_file_tree"}}" data-hide-text="{{ctx.Locale.Tr "repo.diff.hide_file_tree"}}">
77
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}

web_src/css/base.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ textarea {
3232
font-family: var(--fonts-regular);
3333
}
3434

35+
.ui.form textarea:not([rows]) {
36+
height: 8em; /* override fomantic default 12em */
37+
}
38+
3539
pre,
3640
code,
3741
kbd,

web_src/css/editor/combomarkdowneditor.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737
.combo-markdown-editor textarea.markdown-text-editor {
3838
display: block;
3939
width: 100%;
40-
min-height: 200px;
41-
max-height: calc(100vh - 200px);
40+
min-height: 140px;
41+
max-height: calc(100vh - 140px);
4242
resize: vertical;
4343
}
4444

4545
.combo-markdown-editor .CodeMirror-scroll {
46-
max-height: calc(100vh - 200px);
46+
max-height: calc(100vh - 140px);
4747
}
4848

4949
/* use the same styles as markup/content.css */

web_src/css/repo.css

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1498,12 +1498,6 @@
14981498
background: var(--color-body);
14991499
}
15001500

1501-
@media (max-width: 991.98px) {
1502-
.repository .diff-detail-box {
1503-
flex-direction: row;
1504-
}
1505-
}
1506-
15071501
@media (max-width: 480px) {
15081502
.repository .diff-detail-box {
15091503
flex-wrap: wrap;
@@ -1528,7 +1522,7 @@
15281522
color: var(--color-red);
15291523
}
15301524

1531-
@media (max-width: 991.98px) {
1525+
@media (max-width: 800px) {
15321526
.repository .diff-detail-box .diff-detail-stats {
15331527
display: none !important;
15341528
}
@@ -1538,7 +1532,6 @@
15381532
display: flex;
15391533
align-items: center;
15401534
gap: 0.25em;
1541-
flex-wrap: wrap;
15421535
justify-content: end;
15431536
}
15441537

@@ -1548,15 +1541,6 @@
15481541
margin-right: 0 !important;
15491542
}
15501543

1551-
@media (max-width: 480px) {
1552-
.repository .diff-detail-box .diff-detail-actions {
1553-
padding-top: 0.25rem;
1554-
}
1555-
.repository .diff-detail-box .diff-detail-actions .ui.button:not(.btn-submit) {
1556-
padding: 0 0.5rem;
1557-
}
1558-
}
1559-
15601544
.repository .diff-detail-box span.status {
15611545
display: inline-block;
15621546
width: 12px;

0 commit comments

Comments
 (0)