openguessr-ui 0.2.2 → 0.2.3

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/README.md CHANGED
@@ -242,6 +242,7 @@ The popup component is used for dialogs. It takes the following props:
242
242
  - `open`: Whether the popup is open
243
243
  - `slim`: Reduces the max width
244
244
  - `verySlim`: Reduces the max width further
245
+ - `ultraSlim`: Reduces the max width even further
245
246
  - `frameless`: Reduces the padding, e.g. for iframes
246
247
  - `onuserclose`: Called when the user closes the popup
247
248
 
@@ -17,7 +17,7 @@
17
17
  tabindex="0"
18
18
  onclick={() =>
19
19
  showConfirmPopup(
20
- "Experiments",
20
+ "Experiment",
21
21
  "Experiments are new ideas brought to life with help from artificial intelligence and built upon the robust foundations of OpenGuessr.",
22
22
  )}>Learn more</span
23
23
  >.
@@ -8,7 +8,7 @@
8
8
  import { backOut } from "svelte/easing";
9
9
  import { fade, scale } from "svelte/transition";
10
10
 
11
- let { children, frameless, slim, verySlim, open = $bindable(false), onuserclose } = $props();
11
+ let { children, frameless, slim, verySlim, ultraSlim, open = $bindable(false), onuserclose } = $props();
12
12
 
13
13
  let zIndex = $state(0);
14
14
 
@@ -65,7 +65,7 @@
65
65
  class="ui-window"
66
66
  transition:scale={{ easing: backOut, duration: 250, start: 0.9 }}
67
67
  class:frame-less={frameless}
68
- style:max-width={verySlim ? "600px" : slim ? "750px" : "850px"}
68
+ style:max-width={ultraSlim ? "450px" : verySlim ? "600px" : slim ? "750px" : "850px"}
69
69
  >
70
70
  <button class="close-popup-button standard-button bright" aria-label="close" onclick={close}
71
71
  ><X strokeWidth={2.25} /></button
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openguessr-ui",
3
- "version": "0.2.2",
3
+ "version": "0.2.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite example"