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 +1 -0
- package/components/ExperimentSign.svelte +1 -1
- package/components/Popup.svelte +2 -2
- package/package.json +1 -1
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
|
|
package/components/Popup.svelte
CHANGED
|
@@ -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
|