@sentropic/design-system-svelte 0.34.61 → 0.34.63

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.
@@ -107,7 +107,7 @@
107
107
  ["st-identityMenu", compact ? "st-identityMenu--compact" : null, className]
108
108
  .filter(Boolean)
109
109
  .join(" ");
110
- const initial = $derived(compact ? identityInitials(user) : identityInitial(user));
110
+ const initial = $derived(identityInitials(user));
111
111
  const displayName = $derived(user?.displayName || user?.email || "User");
112
112
 
113
113
  function getMenuItems(): HTMLElement[] {
package/dist/Menu.svelte CHANGED
@@ -193,6 +193,10 @@
193
193
  display: grid;
194
194
  min-width: var(--st-component-menu-minWidth, 12rem);
195
195
  max-width: var(--st-component-menu-maxWidth, 18rem);
196
+ /* Scroll quand la liste dépasse le viewport (ex: 24+ thèmes) plutôt que de
197
+ déborder hors de l'écran. */
198
+ max-height: var(--st-menu-maxHeight, 80vh);
199
+ overflow-y: auto;
196
200
  padding: var(--st-spacing-1, 0.25rem);
197
201
  }
198
202
 
@@ -152,6 +152,9 @@
152
152
  border-radius: var(--st-component-menu-radius, 0.375rem);
153
153
  box-shadow: var(--st-component-menu-shadow, 0 8px 24px rgb(15 23 42 / 0.14));
154
154
  color: var(--st-component-menu-text, var(--st-semantic-text-primary));
155
+ /* Aligne la taille de texte sur le Menu normal (.st-menu__item) : sans ça le
156
+ contenu hérite de la taille de la page (~1rem) au lieu de 0.875rem. */
157
+ font-size: var(--st-component-menu-fontSize, 0.875rem);
155
158
  min-width: var(--st-component-menu-minWidth, 12rem);
156
159
  max-width: var(--st-component-menu-maxWidth, 18rem);
157
160
  max-height: calc(100vh - 2rem);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-svelte",
3
- "version": "0.34.61",
3
+ "version": "0.34.63",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"