@rogieking/figui3 9.0.3 → 9.0.4

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.
@@ -65,10 +65,15 @@ import"./fig.js";import"./fig-lab.js";function A(J,Q){if(!customElements.get(J))
65
65
  .fig-select-prepend {
66
66
  display: inline-flex;
67
67
  flex: 0 0 auto;
68
+ justify-content: center;
68
69
  align-items: center;
69
- margin-right: var(--spacer-1, 0.25rem);
70
+ min-width: var(--spacer-4, 1.5rem);
71
+ height: 100%;
70
72
  pointer-events: none;
71
73
  }
74
+ :host([size="large"]) .fig-select-prepend {
75
+ min-width: var(--spacer-5, 2rem);
76
+ }
72
77
  .fig-select-prepend:not(.has-content) {
73
78
  display: none;
74
79
  }
package/fig-editor.js CHANGED
@@ -777,10 +777,15 @@ class FigSelect extends HTMLElement {
777
777
  .fig-select-prepend {
778
778
  display: inline-flex;
779
779
  flex: 0 0 auto;
780
+ justify-content: center;
780
781
  align-items: center;
781
- margin-right: var(--spacer-1, 0.25rem);
782
+ min-width: var(--spacer-4, 1.5rem);
783
+ height: 100%;
782
784
  pointer-events: none;
783
785
  }
786
+ :host([size="large"]) .fig-select-prepend {
787
+ min-width: var(--spacer-5, 2rem);
788
+ }
784
789
  .fig-select-prepend:not(.has-content) {
785
790
  display: none;
786
791
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "9.0.3",
3
+ "version": "9.0.4",
4
4
  "description": "A lightweight web components library for building Figma plugin and widget UIs with native look and feel",
5
5
  "author": "Rogie King",
6
6
  "license": "SEE LICENSE IN LICENSE",