File tree Expand file tree Collapse file tree 5 files changed +11
-22
lines changed Expand file tree Collapse file tree 5 files changed +11
-22
lines changed Original file line number Diff line number Diff line change 184
184
</div>
185
185
</div>
186
186
{{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}}">
188
188
<div class="gt-df gt-ac">
189
189
{{if .Verification.Verified}}
190
190
{{if ne .Verification.SigningUser.ID 0}}
Original file line number Diff line number Diff line change 1
1
{{$showFileTree := (and (not .DiffNotAvailable) (gt .Diff.NumFiles 1))}}
2
2
<div>
3
3
<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 ">
5
5
{{if $showFileTree}}
6
6
<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"}}">
7
7
{{/* the icon meaning is reversed here, "octicon-sidebar-collapse" means show the file tree */}}
Original file line number Diff line number Diff line change 21
21
--border-radius-circle : 50% ;
22
22
--opacity-disabled : 0.55 ;
23
23
--height-loading : 16rem ;
24
+ --min-height-textarea : 132px ; /* padding + 6 lines + border = calc(1.57142em + 6lh + 2px), but lh is not fully supported */
24
25
--tab-size : 4 ;
25
26
}
26
27
@@ -492,6 +493,11 @@ ol.ui.list li,
492
493
background : var (--color-active ) !important ;
493
494
}
494
495
496
+ .ui .form textarea : not ([rows ]) {
497
+ height : var (--min-height-textarea ); /* override fomantic default 12em */
498
+ min-height : var (--min-height-textarea ); /* override fomantic default 8em */
499
+ }
500
+
495
501
/* styles from removed fomantic transition module */
496
502
.hidden .transition {
497
503
visibility : hidden;
Original file line number Diff line number Diff line change 37
37
.combo-markdown-editor textarea .markdown-text-editor {
38
38
display : block;
39
39
width : 100% ;
40
- min-height : 200px ;
41
- max-height : calc (100vh - 200px );
40
+ max-height : calc (100vh - var (--min-height-textarea ));
42
41
resize : vertical;
43
42
}
44
43
45
44
.combo-markdown-editor .CodeMirror-scroll {
46
- max-height : calc (100vh - 200 px );
45
+ max-height : calc (100vh - var ( --min-height-textarea ) );
47
46
}
48
47
49
48
/* use the same styles as markup/content.css */
Original file line number Diff line number Diff line change 1498
1498
background : var (--color-body );
1499
1499
}
1500
1500
1501
- @media (max-width : 991.98px ) {
1502
- .repository .diff-detail-box {
1503
- flex-direction : row;
1504
- }
1505
- }
1506
-
1507
1501
@media (max-width : 480px ) {
1508
1502
.repository .diff-detail-box {
1509
1503
flex-wrap : wrap;
1528
1522
color : var (--color-red );
1529
1523
}
1530
1524
1531
- @media (max-width : 991.98 px ) {
1525
+ @media (max-width : 800 px ) {
1532
1526
.repository .diff-detail-box .diff-detail-stats {
1533
1527
display : none !important ;
1534
1528
}
1538
1532
display : flex;
1539
1533
align-items : center;
1540
1534
gap : 0.25em ;
1541
- flex-wrap : wrap;
1542
1535
justify-content : end;
1543
1536
}
1544
1537
1548
1541
margin-right : 0 !important ;
1549
1542
}
1550
1543
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
-
1560
1544
.repository .diff-detail-box span .status {
1561
1545
display : inline-block;
1562
1546
width : 12px ;
You can’t perform that action at this time.
0 commit comments