@rogieking/figui3 1.0.65 → 1.0.67

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.
Files changed (3) hide show
  1. package/fig.css +1 -4
  2. package/fig.js +8 -6
  3. package/package.json +1 -1
package/fig.css CHANGED
@@ -1951,10 +1951,7 @@ fig-header {
1951
1951
  & h3 {
1952
1952
  padding-left: var(--spacer-1);
1953
1953
  font-weight: var(--body-medium-strong-fontWeight);
1954
- }
1955
-
1956
- & > *:not(fig-button) {
1957
- margin-right: auto;
1954
+ flex-grow: 1;
1958
1955
  }
1959
1956
 
1960
1957
  &[borderless] {
package/fig.js CHANGED
@@ -1407,13 +1407,15 @@ class FigImage extends HTMLElement {
1407
1407
  #updateRefs() {
1408
1408
  requestAnimationFrame(() => {
1409
1409
  this.chit = this.querySelector("fig-chit");
1410
- this.uploadButton = this.querySelector("fig-button");
1411
- this.fileInput = this.uploadButton?.querySelector("input");
1410
+ if (this.upload) {
1411
+ this.uploadButton = this.querySelector("fig-button");
1412
+ this.fileInput = this.uploadButton?.querySelector("input");
1412
1413
 
1413
- this.fileInput.addEventListener(
1414
- "change",
1415
- this.handleFileInput.bind(this)
1416
- );
1414
+ this.fileInput.addEventListener(
1415
+ "change",
1416
+ this.handleFileInput.bind(this)
1417
+ );
1418
+ }
1417
1419
  });
1418
1420
  }
1419
1421
  handleFileInput(e) {
package/package.json CHANGED
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@rogieking/figui3",
3
- "version": "1.0.65"
3
+ "version": "1.0.67"
4
4
  }