Refactor pull request view (5) (#37517)

Clean up templates, remove various CSS patches.

By the way, fix incorrect NewRequest URLs in tests.
This commit is contained in:
wxiaoguang
2026-05-04 02:53:24 +08:00
committed by GitHub
parent c4c50bee7f
commit f26f71f1b2
23 changed files with 144 additions and 167 deletions

View File

@@ -10,10 +10,12 @@
}
/* items have dividers between them, the dividers align with items (use parent padding) */
.flex-divided-list {
list-style: none;
.flex-divided-list,
.flex-divided-list > .item.flex-divided-list {
display: flex;
flex-direction: column;
align-items: stretch;
gap: 0;
}
.flex-divided-list > .item {
@@ -99,22 +101,21 @@
}
/* special rules to make the list work with existing UI elements */
.container-segmented > .flex-divided-list > .item {
.container-divided > .flex-divided-list > .item {
padding-left: 1em;
padding-right: 1em;
}
.ui.segment.fitted > .flex-divided-list > .item {
padding: 1em;
.container-divided > .flex-divided-list > .item.flex-divided-list {
padding: 0;
}
.container-padded > .flex-divided-list > .item:first-child,
.ui.segment:not(.fitted) > .flex-divided-list > .item:first-child {
.ui.segment:not(.container-divided) > .flex-divided-list > .item:first-child {
padding-top: 0;
}
.container-padded > .flex-divided-list > .item:last-child,
.ui.segment:not(.fitted) > .flex-divided-list > .item:last-child {
.ui.segment:not(.container-divided) > .flex-divided-list > .item:last-child {
padding-bottom: 0;
}