Skip to content

Commit

Permalink
Fix window not being draggable when a modal is open
Browse files Browse the repository at this point in the history
  • Loading branch information
probablykasper committed Oct 7, 2024
1 parent 365b3fc commit 85da4af
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/Modal.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@
}}
/>

<div class="dragbar absolute top-0 left-0 w-full" />

<!-- svelte-ignore a11y-no-noninteractive-element-interactions -->
<dialog
class="modal m-auto"
Expand Down Expand Up @@ -88,12 +90,16 @@
</dialog>

<style lang="sass">
.dragbar
-webkit-app-region: drag
height: 25px
h3
font-weight: 500
margin-bottom: 0.875rem
::backdrop
background-color: rgba(#000000, 0.4)
dialog
max-height: calc(100% - 40px)
color: inherit
box-sizing: border-box
box-shadow: 0px 0px 30px 0px rgba(#000000, 0.5)
Expand Down
1 change: 1 addition & 0 deletions src/electron/update.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { app, dialog } from 'electron'
import package_json from '../../package.json'
import is from './is'

export type UpdateJson = {
[channel: string]: {
Expand Down

0 comments on commit 85da4af

Please sign in to comment.