@zerohive/hive-viewer 2.0.1 → 2.0.3

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.
package/dist/styles.css CHANGED
@@ -309,16 +309,26 @@
309
309
  display: block; /* Removes bottom spacing in canvas */
310
310
  }
311
311
 
312
- /* Loading Spinner */
313
- .hv-loader {
314
- display: flex;
315
- flex-direction: column;
316
- align-items: center;
317
- justify-content: center;
318
- height: 100%;
319
- color: var(--hv-muted);
320
- gap: 12px;
321
- }
312
+ /* Loading Spinner */
313
+ .hv-status-shell {
314
+ width: min(960px, calc(100vw - 64px));
315
+ max-width: 100%;
316
+ min-width: 0;
317
+ margin: 0 auto;
318
+ display: flex;
319
+ justify-content: center;
320
+ }
321
+
322
+ .hv-loader {
323
+ display: flex;
324
+ flex-direction: column;
325
+ align-items: center;
326
+ justify-content: center;
327
+ width: 100%;
328
+ min-height: 160px;
329
+ color: var(--hv-muted);
330
+ gap: 12px;
331
+ }
322
332
  .hv-spinner {
323
333
  width: 24px;
324
334
  height: 24px;
@@ -334,6 +344,10 @@
334
344
 
335
345
  /* Error State */
336
346
  .hv-error-banner {
347
+ display: flex;
348
+ flex-direction: column;
349
+ align-items: center;
350
+ gap: 8px;
337
351
  margin: 32px auto;
338
352
  padding: 16px 24px;
339
353
  background: #fef2f2;
@@ -342,20 +356,27 @@
342
356
  color: #991b1b;
343
357
  text-align: center;
344
358
  box-sizing: border-box;
345
- width: min(100%, 560px);
346
- min-width: min(100%, 280px);
347
- max-width: 560px;
359
+ width: min(560px, 100%);
360
+ max-width: 100%;
361
+ min-width: min(280px, 100%);
348
362
  box-shadow: var(--hv-shadow);
349
363
  }
350
364
 
351
- .hv-error-banner strong,
352
- .hv-error-banner p {
365
+ .hv-error-banner > strong,
366
+ .hv-error-banner > p,
367
+ .hv-info-banner > strong,
368
+ .hv-info-banner > p {
369
+ display: block;
370
+ width: 100%;
371
+ max-width: none;
372
+ white-space: normal;
353
373
  overflow-wrap: anywhere;
354
374
  word-break: break-word;
355
375
  }
356
376
 
357
- .hv-error-banner p {
358
- margin: 8px 0 0;
377
+ .hv-error-banner > p,
378
+ .hv-info-banner > p {
379
+ margin: 0;
359
380
  }
360
381
 
361
382
  .hv-info-banner {
@@ -568,6 +589,17 @@
568
589
  overflow: hidden;
569
590
  }
570
591
 
592
+ .hv-text-scroll-surface {
593
+ width: 816px;
594
+ min-height: 0;
595
+ overflow: visible;
596
+ }
597
+
598
+ .hv-text-scroll-content {
599
+ width: 100%;
600
+ min-height: 0;
601
+ }
602
+
571
603
  .hv-richtext-authoring-shell {
572
604
  width: 100%;
573
605
  min-width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerohive/hive-viewer",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",