made window draggable

This commit is contained in:
nin0 2024-07-29 16:14:46 -04:00
parent 161e28d5f3
commit eb07a77584
4 changed files with 136 additions and 12 deletions

View file

@ -3,15 +3,16 @@ const {title, showClose, maxWidth} = Astro.props
---
<style define:vars={{ maxWidth }}>
#window {
.window {
max-width: var(--maxWidth);
position: absolute;
}
.window-body {
padding: 20px !important;
}
</style>
<div class="background" id="window">
<div class="background" class="window">
<div class="window glass active" style="max-width: 100%">
<div class="title-bar">
<div class="title-bar-text">{title}</div>