Skip to content

Commit fe97f39

Browse files
authored
fix: add margin-block to global search button (#192)
Add a .global-search class to the 'Click to search again but globally' button and apply margin-block: calc(var(--cz-spacing) * 4) for proper vertical spacing.
1 parent 4e0fcd7 commit fe97f39

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/cosmoz-treenode-navigator.styles.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,8 @@ export default css`
102102
.path > .pointer:has(~ .pointer:hover) {
103103
text-decoration: underline;
104104
}
105+
106+
.global-search {
107+
margin-block: calc(var(--cz-spacing) * 4);
108+
}
105109
`;

src/cosmoz-treenode-navigator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ const NodeNavigator = ({
385385
search && openNodePath,
386386
() => html`
387387
<cosmoz-button
388+
class="global-search"
388389
variant="link"
389390
full-width
390391
data-testid="global-search-button"

0 commit comments

Comments
 (0)