1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-19 08:48:37 +00:00

Fix button alignments and remove unnecessary styles (#34206)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
Kerwin Bryant
2025-04-16 16:14:10 +08:00
committed by GitHub
parent a4f22a3e80
commit bde014e46d
22 changed files with 98 additions and 166 deletions

View File

@@ -1629,21 +1629,17 @@ td .commit-summary {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.repo-button-row-left {
flex-grow: 1;
}
.repo-button-row .button {
padding: 6px 10px !important;
height: 30px;
.repo-button-row .ui.button {
flex-shrink: 0;
margin: 0;
}
.repo-button-row .button.dropdown:not(.icon) {
padding-right: 22px !important; /* normal buttons have !important paddings, so we need to override it for dropdown (Add File) icons */
min-height: 30px;
}
tbody.commit-list {
@@ -2221,10 +2217,11 @@ tbody.commit-list {
max-width: min(400px, 90vw);
}
.branch-selector-dropdown .branch-dropdown-button {
.branch-selector-dropdown .ui.button.branch-dropdown-button {
margin: 0;
max-width: 340px;
line-height: var(--line-height-default);
padding: 0 0.5em 0 0.75em;
}
/* FIXME: These media selectors are not ideal (just keep them from old code).