Skip to content

A platform for community discussion. Free, open, simple.

UX: fix github onebox misalign (#37028)

small-lovely-cat4f00f63acd18
diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss
index 4fa67569012..735a5377500 100644
--- a/app/assets/stylesheets/common/base/onebox.scss
+++ b/app/assets/stylesheets/common/base/onebox.scss
@@ -604,11 +604,18 @@ pre.onebox code ol.lines li.selected {
vertical-align: text-bottom;
}
- .labels span {
- // !important required to override inline style attribute
- background-color: var(--primary-medium) !important;
- color: var(--secondary) !important;
- padding: 2px 4px !important;
+ .labels {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.25em;
+
+ span {
+ // !important required to override inline style attribute
+ background-color: var(--primary-medium) !important;
+ color: var(--secondary) !important;
+ padding: 2px 4px !important;
+ white-space: nowrap;
+ }
}
.emoji {