made window draggable
This commit is contained in:
parent
161e28d5f3
commit
eb07a77584
4 changed files with 136 additions and 12 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue