Skip to content

Commit

Permalink
🐛 Invite link overflowing on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
homostellaris committed Apr 25, 2024
1 parent 00f5a5b commit e9d4807
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
30 changes: 16 additions & 14 deletions src/lib/Inviter.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -61,28 +61,30 @@
}
</script>

<div>
<h1>Copy the invite link and wait for others to join</h1>
<form style:text-align="center" method="dialog">
<input id="invite-url" readonly type="url" value={inviteUrl} />
<Button on:click={share} type="success">
<ShareIcon />
</Button>
</form>
</div>
<h1>Copy the invite link and wait for others to join</h1>
<form style:text-align="center" method="dialog">
<input id="invite-url" readonly type="url" value={inviteUrl} />
<Button on:click={share} type="success">
<ShareIcon />
</Button>
</form>

<style>
h1 {
font-size: 1.61em;
margin: 2rem 0 1rem 0;
}
#invite-url {
text-align: center;
width: 45ch;
form {
display: flex;
gap: 0.5rem;
justify-content: center;
margin: 1rem;
width: 100%;
}
input {
max-width: 100%;
flex-grow: 1;
max-width: 45ch;
text-align: center;
}
</style>
1 change: 1 addition & 0 deletions src/lib/Page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
flex-grow: 1;
justify-content: center;
margin: auto;
max-width: 100vw;
padding: 1rem;
position: relative;
}
Expand Down

0 comments on commit e9d4807

Please sign in to comment.