Skip to content

Commit 9eb7306

Browse files
brunoborgesCopilot
andcommitted
Fix search result category badge alignment on desktop
Add flex:1 to text container and flex-shrink:0 to badge so the category label is consistently right-aligned. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent a15cf95 commit 9eb7306

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

site/styles.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,6 +1414,15 @@ nav {
14141414
transition: background 0.15s;
14151415
}
14161416

1417+
.search-result > div:first-child {
1418+
flex: 1;
1419+
min-width: 0;
1420+
}
1421+
1422+
.search-result > .badge {
1423+
flex-shrink: 0;
1424+
}
1425+
14171426
.search-result:hover,
14181427
.search-result.selected {
14191428
background: var(--surface-2);

0 commit comments

Comments
 (0)