Skip to content

Commit 9943219

Browse files
committed
fix css
1 parent 9692379 commit 9943219

File tree

4 files changed

+30
-22
lines changed

4 files changed

+30
-22
lines changed

web_src/css/file-view.css

Lines changed: 0 additions & 3 deletions
This file was deleted.

web_src/css/index.css

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,4 @@
8585

8686
@import "./helpers.css";
8787

88-
@import "./file-view.css";
89-
9088
@tailwind utilities;

web_src/css/repo.css

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,6 @@ td .commit-summary {
183183
cursor: default;
184184
}
185185

186-
.view-raw > * {
187-
max-width: 100%;
188-
}
189-
190-
.view-raw audio,
191-
.view-raw video,
192-
.view-raw img {
193-
margin: 1rem 0;
194-
border-radius: 0;
195-
object-fit: contain;
196-
}
197-
198-
.view-raw img[src$=".svg" i] {
199-
max-height: 600px !important;
200-
max-width: 600px !important;
201-
}
202-
203186
.repository.file.list .non-diff-file-content .plain-text {
204187
padding: 1em 2em;
205188
}

web_src/css/repo/file-view.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,33 @@
6060
.file-view.code-view .ui.button.code-line-button:hover {
6161
background: var(--color-secondary);
6262
}
63+
64+
.view-raw {
65+
display: flex;
66+
justify-content: center;
67+
}
68+
69+
.view-raw > * {
70+
max-width: 100%;
71+
}
72+
73+
.view-raw audio,
74+
.view-raw video,
75+
.view-raw img {
76+
margin: 1rem;
77+
border-radius: 0;
78+
object-fit: contain;
79+
}
80+
81+
.view-raw img[src$=".svg" i] {
82+
max-height: 600px !important;
83+
max-width: 600px !important;
84+
}
85+
86+
.file-view-render-container {
87+
width: 100%;
88+
}
89+
90+
.file-view-render-container :last-child {
91+
border-radius: 0 0 var(--border-radius) var(--border-radius); /* to match the "ui segment" bottom radius */
92+
}

0 commit comments

Comments
 (0)