lexxy 0.9.25 → 0.9.26

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.
Binary file
Binary file
@@ -9,6 +9,9 @@
9
9
  }
10
10
  --lexxy-toolbar-gap: 2px;
11
11
  --lexxy-toolbar-spacing: 0.5ch;
12
+ --lexxy-toolbar-padding: 2px;
13
+ --lexxy-toolbar-border-size: 1px;
14
+ --lexxy-toolbar-height: calc(var(--lexxy-toolbar-button-size) + 2 * var(--lexxy-toolbar-padding) + var(--lexxy-toolbar-border-size));
12
15
 
13
16
  border: 1px solid var(--lexxy-color-ink-lighter);
14
17
  border-radius: calc(var(--lexxy-radius) + var(--lexxy-toolbar-gap));
@@ -408,6 +411,11 @@
408
411
  }
409
412
  }
410
413
 
414
+ /* Reserve the mounted height before upgrade so it doesn't shift layout on mount. */
415
+ :where(lexxy-editor:not(:defined)) {
416
+ min-block-size: calc(var(--lexxy-toolbar-height) + var(--lexxy-editor-rows) + 2 * var(--lexxy-editor-padding));
417
+ }
418
+
411
419
  /* Placeholder */
412
420
  :where(.lexxy-editor--empty) {
413
421
  .lexxy-editor__content:not(:has(h1, h2, h3, h4, h5, h6, table, ul, ol, figure, .attachment-gallery))::before {
@@ -461,13 +469,13 @@
461
469
  :where(lexxy-toolbar) {
462
470
  --lexxy-toolbar-icon-size: 1.125em;
463
471
 
464
- border-block-end: 1px solid var(--lexxy-color-ink-lighter);
472
+ border-block-end: var(--lexxy-toolbar-border-size) solid var(--lexxy-color-ink-lighter);
465
473
  color: currentColor;
466
474
  display: flex;
467
475
  font-size: inherit;
468
476
  gap: var(--lexxy-toolbar-gap);
469
477
  max-inline-size: 100%;
470
- padding: 2px;
478
+ padding: var(--lexxy-toolbar-padding);
471
479
  position: relative;
472
480
 
473
481
  @container (width < 300px) {
data/lib/lexxy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lexxy
2
- VERSION = "0.9.25"
2
+ VERSION = "0.9.26"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lexxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.25
4
+ version: 0.9.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jorge Manrubia