diff options
Diffstat (limited to 'web_src/css/repo.css')
-rw-r--r-- | web_src/css/repo.css | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/web_src/css/repo.css b/web_src/css/repo.css index b7bb1b2967..be9a3ae585 100644 --- a/web_src/css/repo.css +++ b/web_src/css/repo.css @@ -412,26 +412,42 @@ cursor: default; } -.repository.file.list .non-diff-file-content .view-raw { - padding: 5px; +.view-raw { + display: flex; + justify-content: center; + align-items: center; } -.repository.file.list .non-diff-file-content .view-raw > * { +.view-raw > * { max-width: 100%; - border: 1px solid var(--color-secondary); } -.repository.file.list .non-diff-file-content .view-raw img { +.view-raw audio, +.view-raw video, +.view-raw img { margin: 1rem 0; border-radius: 0; object-fit: contain; } -.repository.file.list .non-diff-file-content .view-raw img[src$=".svg" i] { +.view-raw img[src$=".svg" i] { max-height: 600px !important; max-width: 600px !important; } +.pdf-content { + width: 100%; + height: 600px; + border: none !important; + display: flex; + align-items: center; + justify-content: center; +} + +.pdf-content:has(.pdf-fallback-button) { + height: 100px; +} + .repository.file.list .non-diff-file-content .plain-text { padding: 1em 2em; } @@ -454,6 +470,11 @@ padding: 5px !important; } +.non-diff-file-content .attached.segment, +.non-diff-file-content .pdfobject { + border-radius: 0 0 var(--border-radius) var(--border-radius); +} + .repository.file.list .sidebar { padding-left: 0; } |