diff --git a/web_src/css/base.css b/web_src/css/base.css
index d2aa64e6e..2b62c2485 100644
--- a/web_src/css/base.css
+++ b/web_src/css/base.css
@@ -2099,8 +2099,8 @@ a.ui.basic.label:hover {
}
/* if a .top.attached.header is followed by a .segment, add some margin */
-.ui.segments ~ .ui.top.attached.header,
-.ui.attached.segment ~ .ui.top.attached.header {
+.ui.segments + .ui.top.attached.header,
+.ui.attached.segment + .ui.top.attached.header {
margin-top: 1rem;
}
diff --git a/web_src/css/repo.css b/web_src/css/repo.css
index 674f8c9e6..546fff32f 100644
--- a/web_src/css/repo.css
+++ b/web_src/css/repo.css
@@ -2693,19 +2693,12 @@
}
.repo-button-row {
- margin-bottom: 10px;
-}
-
-.repo-button-row > * {
- margin-top: 8px;
-}
-
-.wiki .repo-button-row {
- margin-bottom: 0;
-}
-
-.wiki .repo-button-row > * {
- margin-top: 0;
+ margin: 10px 0;
+ display: flex;
+ align-items: center;
+ gap: 0.5em;
+ flex-wrap: wrap;
+ justify-content: space-between;
}
.repo-button-row .button {
@@ -2713,6 +2706,10 @@
height: 30px;
}
+.repo-button-row .button.dropdown {
+ padding-right: 22px !important; /* normal buttons have !important paddings, so we need to override it for dropdown (Add File) icons */
+}
+
.repo-button-row input {
height: 30px;
}