@drghaliasri/butex 6.1.4 → 7.0.0

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.
@@ -2319,14 +2319,20 @@ var BUTEX_EDITOR_CSS = `
2319
2319
  ${BUTEX_FONT_FACE_CSS}
2320
2320
 
2321
2321
  .surface {
2322
+ background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
2322
2323
  border: 1px solid var(--butex-border, #e2e8f0);
2323
2324
  border-radius: 12px;
2324
- min-height: 100px;
2325
- padding: 8px 10px;
2326
- background: var(--butex-surface-bg, linear-gradient(180deg, #ffffff 0%, #fafbfc 100%));
2327
2325
  color: var(--butex-surface-fg, #0f172a);
2328
- outline: none;
2329
2326
  cursor: text;
2327
+ max-width: 100%;
2328
+ min-height: 100px;
2329
+ min-width: 0;
2330
+ outline: none;
2331
+ overflow-x: auto;
2332
+ overflow-y: hidden;
2333
+ overscroll-behavior-inline: contain;
2334
+ padding: 8px 10px;
2335
+ touch-action: pan-x pan-y;
2330
2336
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
2331
2337
  }
2332
2338
 
@@ -2391,6 +2397,17 @@ ${CHARACTER_FONT_CSS}
2391
2397
  50% { opacity: 0; }
2392
2398
  }
2393
2399
 
2400
+ @media (prefers-reduced-motion: reduce) {
2401
+ .surface {
2402
+ scroll-behavior: auto;
2403
+ transition: none;
2404
+ }
2405
+
2406
+ .caret {
2407
+ animation: none;
2408
+ }
2409
+ }
2410
+
2394
2411
  .node {
2395
2412
  display: inline-flex;
2396
2413
  align-items: stretch;