@novely/solid-renderer 0.23.1 → 0.24.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.
package/dist/index.jsx CHANGED
@@ -4511,7 +4511,7 @@ var handleInputAction = ($contextState, options, context, label, onInput, setup,
4511
4511
  input.setAttribute("name", "novely-input");
4512
4512
  input.setAttribute("required", "true");
4513
4513
  input.setAttribute("autocomplete", "off");
4514
- input.addEventListener("input", onInputHandler);
4514
+ !context.meta.preview && input.addEventListener("input", onInputHandler);
4515
4515
  setup(input, (callback) => $contextState.setKey("input.cleanup", callback));
4516
4516
  $contextState.setKey("input", {
4517
4517
  element: input,
@@ -4520,7 +4520,7 @@ var handleInputAction = ($contextState, options, context, label, onInput, setup,
4520
4520
  visible: true,
4521
4521
  resolve
4522
4522
  });
4523
- input.dispatchEvent(new InputEvent("input", { bubbles: true }));
4523
+ !context.meta.preview && input.dispatchEvent(new InputEvent("input", { bubbles: true }));
4524
4524
  };
4525
4525
  var handleVibrateAction = vibrate;
4526
4526
 
@@ -4756,7 +4756,7 @@ var ControlPanelButtons = (props) => {
4756
4756
  })(), (() => {
4757
4757
  const _el$3 = _tmpl$2(), _el$4 = _el$3.firstChild;
4758
4758
  _el$3.$$click = () => {
4759
- data.options.save(false, "manual");
4759
+ data.options.save("manual");
4760
4760
  };
4761
4761
  insert(_el$4, () => data.t("DoSave"));
4762
4762
  insert(_el$3, createComponent(Icon, {
@@ -4782,7 +4782,7 @@ var ControlPanelButtons = (props) => {
4782
4782
  })(), (() => {
4783
4783
  const _el$7 = _tmpl$2(), _el$8 = _el$7.firstChild;
4784
4784
  _el$7.$$click = () => {
4785
- data.options.save(false, "auto");
4785
+ data.options.save("auto");
4786
4786
  props.openSettings();
4787
4787
  };
4788
4788
  insert(_el$8, () => data.t("Settings"));
@@ -772,15 +772,15 @@
772
772
  padding: var(--novely-saves-list-border-width, .875rem) 1rem;
773
773
  border-radius: var(--novely-saves-list-border-radius, .875rem);
774
774
  background-color: var(--novely-saves-list-background-color, #ffffff57);
775
- grid-template-columns: repeat(auto-fit, minmax(22vmin, 30%));
776
- place-content: flex-start space-between;
775
+ flex-wrap: wrap;
776
+ place-content: flex-start;
777
777
  gap: 1rem;
778
778
  width: 100%;
779
779
  height: 80%;
780
780
  margin-top: 0;
781
781
  margin-bottom: 0;
782
782
  list-style: none;
783
- display: grid;
783
+ display: flex;
784
784
  overflow-x: hidden;
785
785
  overflow-y: scroll;
786
786
  touch-action: auto !important;
@@ -804,14 +804,15 @@
804
804
  }
805
805
  .saves__list--empty {
806
806
  color: var(--novely-saves-list-empty-color, black);
807
- justify-content: center;
807
+ place-content: center;
808
808
  align-items: center;
809
- display: flex;
810
809
  }
811
810
  .saves__list-item {
812
811
  background-color: var(--novely-saves-list-item-background-color, #ffe9f3);
813
812
  flex-wrap: wrap;
813
+ align-self: flex-start;
814
814
  gap: .375rem;
815
+ width: max(22vmin, 33% - 1rem);
815
816
  padding: .375rem;
816
817
  display: flex;
817
818
  }
@@ -835,6 +836,7 @@
835
836
  }
836
837
  .saves__list-item {
837
838
  flex-direction: column;
839
+ width: 100%;
838
840
  }
839
841
  }
840
842
  @media (max-aspect-ratio: .26) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.23.1",
3
+ "version": "0.24.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"