File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 19
19
{{else if .IsPlainText}}
20
20
<pre>{{if .FileContent}}{{.FileContent | Safe}}{{end}}</pre>
21
21
{{else if not .IsTextFile}}
22
- <div class="view-raw ui center{{if .IsPDFFile}} gt-p-0{{end}} ">
22
+ <div class="view-raw">
23
23
{{if .IsImageFile}}
24
24
<img src="{{$.RawFileLink}}">
25
25
{{else if .IsVideoFile}}
Original file line number Diff line number Diff line change 73
73
{{else if .IsPlainText}}
74
74
<pre>{{if .FileContent}}{{.FileContent | Safe}}{{end}}</pre>
75
75
{{else if not .IsTextSource}}
76
- <div class="view-raw ui center{{if .IsPDFFile}} gt-p-0{{end}} ">
76
+ <div class="view-raw">
77
77
{{if .IsImageFile}}
78
78
<img src="{{$.RawFileLink}}">
79
79
{{else if .IsVideoFile}}
Original file line number Diff line number Diff line change 393
393
cursor : default;
394
394
}
395
395
396
- .repository .file .list .non-diff-file-content .view-raw {
397
- padding : 5px ;
396
+ .view-raw {
397
+ display : flex;
398
+ justify-content : center;
399
+ align-items : center;
398
400
}
399
401
400
- .repository . file . list . non-diff-file-content . view-raw > * {
402
+ .view-raw > * {
401
403
max-width : 100% ;
402
- border : 1px solid var (--color-secondary );
403
404
}
404
405
405
- .repository .file .list .non-diff-file-content .view-raw img {
406
+ .view-raw audio ,
407
+ .view-raw video ,
408
+ .view-raw img {
406
409
margin : 1rem 0 ;
407
410
border-radius : 0 ;
408
411
object-fit : contain;
409
412
}
410
413
411
- .repository . file . list . non-diff-file-content . view-raw img [src $= ".svg" i] {
414
+ .view-raw img [src $= ".svg" i] {
412
415
max-height : 600px !important ;
413
416
max-width : 600px !important ;
414
417
}
448
451
padding : 5px !important ;
449
452
}
450
453
454
+ .non-diff-file-content .attached .segment ,
455
+ .non-diff-file-content .pdfobject {
456
+ border-radius : 0 0 var (--border-radius ) var (--border-radius );
457
+ }
458
+
451
459
.repository .file .list .sidebar {
452
460
padding-left : 0 ;
453
461
}
You can’t perform that action at this time.
0 commit comments