mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 20:54:50 +03:00
Merge pull request #175 from gitbutlerapp/ian/gb-195-bug-dialog-is-1-pixel-on-the-top-of-the
Ian/gb 195 bug dialog is 1 pixel on the top of the
This commit is contained in:
commit
9c54f77446
@ -46,14 +46,20 @@ It does minimal styling. A close event is fired when the modal is closed.
|
||||
<svelte:window on:click={handleClick} />
|
||||
|
||||
<dialog
|
||||
class="flex w-[640px] overflow-hidden rounded-lg border-[0.5px] border-[#3F3F3f] bg-zinc-900/70 p-0 shadow-lg backdrop-blur-lg"
|
||||
class="my-0 overflow-hidden bg-transparent p-0"
|
||||
in:scale={{ duration: 150 }}
|
||||
bind:this={dialog}
|
||||
on:close={hide}
|
||||
>
|
||||
{#if open}
|
||||
<div class="flex h-[400px]" bind:this={content}>
|
||||
<slot />
|
||||
<div class="modal-overlay relative top-[25%] h-[100vh] overflow-hidden">
|
||||
<div
|
||||
class="modal w-[640px] overflow-hidden rounded-lg border-[0.5px] border-[#3F3F3f] bg-zinc-900/70 p-0 shadow-lg backdrop-blur-lg"
|
||||
>
|
||||
<div class="flex" bind:this={content}>
|
||||
<slot />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
</dialog>
|
||||
|
Loading…
Reference in New Issue
Block a user