You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/components/primer/alpha/tree_view.pcss
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -284,25 +284,29 @@
284
284
285
285
/* The visual icons should appear vertically centered for single-line items, but remain at the top for items that wrap
286
286
across more lines. */
287
+
align-self: baseline;
287
288
height: var(--custom-line-height, 1.3rem);
288
289
color: var(--fgColor-muted);
289
290
align-items: center;
290
291
}
291
292
292
293
&.TreeViewItemLeadingAction {
293
-
display: flex;
294
-
color: var(--fgColor-muted);
295
294
grid-area: leadingAction;
296
-
297
-
&>button {
298
-
flex-shrink: 1;
299
-
}
300
295
}
301
296
302
297
&.TreeViewItemTrailingAction {
298
+
grid-area: trailingAction;
299
+
}
300
+
301
+
&.TreeViewItemTrailingAction,
302
+
&.TreeViewItemLeadingAction {
303
303
display: flex;
304
304
color: var(--fgColor-muted);
305
-
grid-area: trailingAction;
305
+
/* The dynamic top and bottom padding to maintain the minimum item height for single line items while cancelling out the invisible area of the button */
0 commit comments