Improve detecting empty files (#31332)

Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
wxiaoguang 2024-06-13 09:06:46 +08:00 committed by GitHub
parent 7115dce773
commit 47ca61d8ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 29 additions and 13 deletions

View file

@ -1706,6 +1706,18 @@ td .commit-summary {
.file-view.markup {
padding: 1em 2em;
}
.file-view.markup:has(.file-not-rendered-prompt) {
padding: 0; /* let the file-not-rendered-prompt layout itself */
}
.file-not-rendered-prompt {
padding: 1rem;
text-align: center;
font-size: 1rem !important; /* use consistent styles for various containers (code, markup, etc) */
line-height: var(--line-height-default) !important; /* same as above */
}
.repository .activity-header {
display: flex;
justify-content: space-between;