@h-ai/ui 1.0.0-beta.3 → 1.0.0-beta.5

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.
@@ -343,9 +343,9 @@
343
343
  .hai-toast-item {
344
344
  --hai-toast-accent: var(--color-info);
345
345
  display: flex;
346
- align-items: flex-start;
346
+ align-items: center;
347
347
  gap: 0.75rem;
348
- padding: 0.75rem 1rem;
348
+ padding: 0.5rem 0.75rem;
349
349
  border-width: 1px;
350
350
  border-style: solid;
351
351
  border-color: color-mix(in oklab, var(--hai-toast-accent) 20%, var(--color-base-100));
@@ -368,6 +368,15 @@
368
368
  flex-shrink: 0;
369
369
  }
370
370
 
371
+ /* 展开排查信息后,图标和操作仍与正文首行对齐。 */
372
+ .hai-toast-item:has(.hai-toast-details) {
373
+ align-items: flex-start;
374
+ }
375
+
376
+ .hai-toast-item:has(.hai-toast-details) > span[aria-hidden='true'] {
377
+ margin-top: 0.375rem;
378
+ }
379
+
371
380
  .hai-toast-details {
372
381
  margin-top: 0.75rem;
373
382
  padding-top: 0.75rem;
@@ -396,7 +405,9 @@
396
405
  }
397
406
 
398
407
  .hai-toast-message {
399
- flex: 1;
408
+ display: flex;
409
+ align-items: safe center;
410
+ min-height: 2rem;
400
411
  min-width: 0;
401
412
  max-height: min(20rem, 60dvh);
402
413
  overflow: auto;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@h-ai/ui",
3
3
  "type": "module",
4
- "version": "1.0.0-beta.3",
4
+ "version": "1.0.0-beta.5",
5
5
  "description": "Hai Framework UI component library for Svelte 5 Runes.",
6
6
  "license": "Apache-2.0",
7
7
  "svelte": "./dist/index.js",
@@ -124,7 +124,7 @@
124
124
  "svelte": "^5.57.2"
125
125
  },
126
126
  "dependencies": {
127
- "@h-ai/core": "1.0.0-beta.3",
127
+ "@h-ai/core": "1.0.0-beta.5",
128
128
  "@internationalized/date": "^3.12.4",
129
129
  "@rrweb/replay": "^2.1.7",
130
130
  "@shikijs/langs": "^4.5.0",