mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-16 12:05:30 +09:00
fix: PR status layout on mobile (#21547)
This PR fixes the layout of PR status layouts on mobile. For longer status context names or on very small screens the text would overflow and push the "Details" and "Required" badges out of the container. Before:  After:  Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
1 parent
5f0cbb3e80
commit
cd5c067abe
2 files changed
+48
-8
No files matched your search
@@ -3477,3 +3477,41 @@ td.blob-excerpt {
|
||||
max-width: 165px;
|
||||
}
|
||||
}
|
||||
|
||||
.pr-status {
|
||||
padding: 0 !important; // To clear fomantic's padding on .ui.segment elements
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
.commit-status {
|
||||
margin: 1em;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.status-context {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
width: 100%;
|
||||
|
||||
> span {
|
||||
padding: 1em 0;
|
||||
}
|
||||
}
|
||||
|
||||
.status-details {
|
||||
display: flex;
|
||||
padding-right: .5em;
|
||||
align-items: center;
|
||||
justify-content: flex-end;
|
||||
|
||||
@media @mediaSm {
|
||||
flex-direction: column;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
> span {
|
||||
padding-right: .5em; // To match the alignment with the "required" label
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user