Skip to content

Commit 030908b

Browse files
authored
fix component height and margin above feedback (#249)
1 parent e48a4d1 commit 030908b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

preview-src/ui-model.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ site:
3030
url: '/4.1'
3131
version: '4.1'
3232
displayVersion: '4.1'
33+
title: 'Component title wraps onto a second line'
3334
- url: '/4.0'
3435
version: '4.0'
3536
displayVersion: '4.0'

src/css/nav.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,16 @@ html.is-clipped--nav {
7979
justify-content: space-between;
8080
margin-bottom: 1rem;
8181
padding: 0 1.5rem;
82-
box-shadow: 0 1px 0 var(--nav-panel-divider-color);
82+
/* box-shadow: 0 1px 0 var(--nav-panel-divider-color); */
8383
}
8484

8585
.nav .component:has(+ .selectors) {
86-
margin-bottom: 0;
86+
margin-bottom: 0.25rem;
8787
}
8888

8989
.nav .component .nav-product {
90-
height: 2.5rem;
90+
min-height: 2.5rem;
91+
height: fit-content;
9192
padding: 0.5rem 0;
9293
}
9394

@@ -101,7 +102,7 @@ html.is-clipped--nav {
101102
}
102103

103104
.nav .selectors {
104-
padding: 0.5rem 1rem 0;
105+
padding: 0 1rem 0;
105106
}
106107

107108
.nav-panel-menu {
@@ -150,10 +151,11 @@ html.is-clipped--nav {
150151

151152
.nav-menu {
152153
flex-grow: 1;
153-
min-height: 0;
154+
/* min-height: 0; */
154155
width: 100%;
155156
line-height: var(--nav-line-height);
156157
position: relative;
158+
margin-bottom: calc(var(--feedback-height) + 1rem);
157159
}
158160

159161
.nav-menu .component-title {

0 commit comments

Comments
 (0)