Skip to content

Commit

Permalink
chore: add settings page temporary entrance for beta
Browse files Browse the repository at this point in the history
  • Loading branch information
ACTCD committed Jan 27, 2024
1 parent be535d4 commit 70f7456
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/ext/action-popup/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@
window.location.reload();
}
});
/**
* Temporary settings page entrance for beta test (iOS)
* @todo new permanent button will be added via popup refactoring
*/
let showBetaNews = true;
</script>

<svelte:window on:resize={resize} />
Expand Down Expand Up @@ -516,6 +522,17 @@
{#if !active}
<!-- <div class="warn" bind:this={warn}>Injection disabled</div> -->
{/if}
{#if showBetaNews && platform !== "macos"}
<div class="warn">
NEW: <button on:click={openExtensionPage}><b>Settings page</b></button> is
now available on iOS!
<IconButton
icon={iconClear}
on:click={() => (showBetaNews = false)}
title={"Close"}
/>
</div>
{/if}
{#if showInstallPrompt}
<div class="warn" class:done={scriptInstalled} bind:this={warn}>
Userscript
Expand Down Expand Up @@ -672,13 +689,15 @@
text-align: center;
}
.error :global(button) {
.error :global(button),
.warn :global(button:has(svg)) {
position: absolute;
right: 0.5rem;
top: 0;
}
.error :global(button svg) {
.error :global(button svg),
.warn :global(button svg) {
transform: scale(0.5);
}
Expand Down

0 comments on commit 70f7456

Please sign in to comment.