mirror of
https://github.com/mat-1/matdoesdev.git
synced 2025-08-02 23:44:39 +00:00
fixes in cat config page
This commit is contained in:
parent
febb310b02
commit
244fc8ae56
4 changed files with 32 additions and 3 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -8,3 +8,5 @@ node_modules
|
||||||
/.config
|
/.config
|
||||||
/.cache
|
/.cache
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
|
||||||
|
vite.config.js.*
|
Binary file not shown.
|
@ -52,5 +52,5 @@
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16"
|
"node": ">=16"
|
||||||
},
|
},
|
||||||
"packageManager": "yarn@4.4.1"
|
"packageManager": "yarn@4.5.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,6 +57,11 @@
|
||||||
function closeWindow() {
|
function closeWindow() {
|
||||||
windowHidden = true
|
windowHidden = true
|
||||||
}
|
}
|
||||||
|
let windowMaximized = false
|
||||||
|
function toggleMaximizeWindow() {
|
||||||
|
windowMaximized = !windowMaximized
|
||||||
|
offsetX = offsetY = initialX = initialY = 0
|
||||||
|
}
|
||||||
|
|
||||||
let startMouseX = 0
|
let startMouseX = 0
|
||||||
let startMouseY = 0
|
let startMouseY = 0
|
||||||
|
@ -68,7 +73,7 @@
|
||||||
let mouseDown = false
|
let mouseDown = false
|
||||||
|
|
||||||
function startDragWindow(e: MouseEvent) {
|
function startDragWindow(e: MouseEvent) {
|
||||||
if (mouseDown) return
|
if (mouseDown || windowMaximized) return
|
||||||
startMouseX = e.clientX
|
startMouseX = e.clientX
|
||||||
startMouseY = e.clientY
|
startMouseY = e.clientY
|
||||||
initialX += offsetX
|
initialX += offsetX
|
||||||
|
@ -101,6 +106,7 @@
|
||||||
<div
|
<div
|
||||||
class="window"
|
class="window"
|
||||||
class:window-hidden={windowHidden}
|
class:window-hidden={windowHidden}
|
||||||
|
class:window-maximized={windowMaximized}
|
||||||
style="left: {initialX + offsetX}px; top: {initialY + offsetY}px"
|
style="left: {initialX + offsetX}px; top: {initialY + offsetY}px"
|
||||||
>
|
>
|
||||||
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
<!-- svelte-ignore a11y-no-static-element-interactions -->
|
||||||
|
@ -108,7 +114,7 @@
|
||||||
<div class="title-bar-text">cat config page</div>
|
<div class="title-bar-text">cat config page</div>
|
||||||
<div class="title-bar-controls">
|
<div class="title-bar-controls">
|
||||||
<button aria-label="Minimize" on:click={closeWindow}></button>
|
<button aria-label="Minimize" on:click={closeWindow}></button>
|
||||||
<button aria-label="Maximize"></button>
|
<button aria-label="Maximize" on:click={toggleMaximizeWindow}></button>
|
||||||
<button aria-label="Close" on:click={closeWindow}></button>
|
<button aria-label="Close" on:click={closeWindow}></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -169,6 +175,9 @@
|
||||||
<li>
|
<li>
|
||||||
slipperiness by <a href="https://github.com/GoldenStack/icey-oneko">goldenstack</a>
|
slipperiness by <a href="https://github.com/GoldenStack/icey-oneko">goldenstack</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
98.css by <a href="https://jdan.github.io/98.css/">jdan</a>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</details>
|
</details>
|
||||||
</section>
|
</section>
|
||||||
|
@ -213,6 +222,16 @@
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
:global(.music-player) {
|
||||||
|
border-collapse: unset;
|
||||||
|
}
|
||||||
|
:global(.music-player .song-name) {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
:global(.music-player td button) {
|
||||||
|
min-width: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
section {
|
section {
|
||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -251,4 +270,12 @@
|
||||||
.window-hidden {
|
.window-hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
.window-maximized {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue