Skip to content

Commit

Permalink
Merge pull request #713 from appwrite/fix-responsive-consent
Browse files Browse the repository at this point in the history
fix: responsive consent
  • Loading branch information
TorstenDittmann authored Jan 9, 2024
2 parents e8223ff + 6227f0e commit f17965d
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions src/lib/components/consent.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@
site usage.
</p>

<div class="u-flex u-margin-block-start-16 u-main-space-between u-cross-center">
<div>
<Button class="u-padding-inline-0" text on:click={() => settings.set(true)}
>Cookie settings</Button>
</div>
<div
class="is-consent-buttons u-flex u-margin-block-start-16 u-main-space-between u-cross-center">
<Button class="u-padding-inline-0" text on:click={() => settings.set(true)}>
Cookie settings
</Button>
<div class="u-flex u-gap-16">
<Button secondary on:click={rejectAll}>Only required</Button>
<Button secondary on:click={acceptAll}>Accept all</Button>
Expand Down Expand Up @@ -122,12 +122,28 @@
</Modal>

<style lang="scss">
.card.is-consent {
@import '@appwrite.io/pink/src/abstract/variables/_devices.scss';
.card {
position: fixed;
padding: 1.5rem;
bottom: 1rem;
right: 1rem;
z-index: 100;
max-width: 600px;
}
@media #{$break1} {
.card {
bottom: 0.5rem;
left: 0.5rem;
right: 0.5rem;
max-width: 100%;
.is-consent-buttons {
flex-direction: column;
align-items: center;
}
}
}
</style>

3 comments on commit f17965d

@vercel
Copy link

@vercel vercel bot commented on f17965d Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

console-cloud – ./

console-cloud-git-main-appwrite.vercel.app
console-cloud-appwrite.vercel.app
console-cloud.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f17965d Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

console-preview – ./

console-preview-git-main-appwrite.vercel.app
console-next.vercel.app
console-preview-appwrite.vercel.app

@vercel
Copy link

@vercel vercel bot commented on f17965d Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.