@triptease/tt-navbar 0.0.28 → 0.0.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @triptease/tt-navbar v0.0.28
2
+ * @triptease/tt-navbar v0.0.30
3
3
  */
4
4
 
5
5
  // src/urlMappings.ts
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent tt-navbar following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "tt-navbar",
6
- "version": "0.0.28",
6
+ "version": "0.0.30",
7
7
  "type": "module",
8
8
  "main": "dist/src/index.js",
9
9
  "module": "dist/src/index.js",
package/src/styles.ts CHANGED
@@ -15,12 +15,17 @@ const visuallyHiddenCss = css`
15
15
 
16
16
  export const styles = css`
17
17
  :host {
18
- --nav-bar-width: 260px;
18
+ --nav-bar-width: 250px;
19
19
 
20
20
  display: block;
21
21
  height: 100vh;
22
22
  }
23
23
 
24
+ :host:has(.sidebar-closed) {
25
+ --nav-bar-width: fit-content;
26
+ }
27
+
28
+
24
29
  * {
25
30
  box-sizing: border-box;
26
31
  }
@@ -142,6 +147,10 @@ export const styles = css`
142
147
 
143
148
  nav.sidebar-closed {
144
149
  width: fit-content;
150
+
151
+ :host {
152
+ --nav-bar-width: fit-content;
153
+ }
145
154
  }
146
155
 
147
156
  details {