Skip to content

Commit

Permalink
fix: cleaned up modal & table styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Sep 13, 2024
1 parent cb10456 commit fb98da2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
9 changes: 6 additions & 3 deletions src/components/Titlebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@
// * This is actually async but isn't typed properly.
const appWindow = await Window.getByLabel("main")!;
minimize.addEventListener("click", () => appWindow.minimize());
minimize.addEventListener("click", () => appWindow!.minimize());
maximize.addEventListener("click", () => {
appWindow.toggleMaximize();
appWindow!.toggleMaximize();
isMaxed = !isMaxed;
});
close.addEventListener("click", onCloseListener);
appWindow.onCloseRequested(async (event) => {
appWindow!.onCloseRequested(async (event) => {
event.preventDefault();
await onCloseListener();
}).then((listener) => windowCloseUnsub = listener);
Expand Down Expand Up @@ -104,6 +104,9 @@
display: inline-flex;
justify-content: space-between;
font-size: 14px;
position: relative;
z-index: 2;
}
.info {
display: flex;
Expand Down
8 changes: 4 additions & 4 deletions src/components/layout/Table.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
import { scrollShadow } from "@directives";
export let height = "400px";
export let marginLeft = "7px";
</script>

<div class="table" style="height: {height}; margin-left: {marginLeft};">
<div class="table" style="height: {height};">
<div class="header">
<slot name="header" />
</div>
Expand All @@ -21,12 +20,14 @@
.table {
margin-top: 7px;
width: calc(100% - 28px);
width: calc(100% - 14px);
padding: 7px;
border-radius: 4px;
font-size: 14px;
background-color: var(--background-dark);
}
Expand Down Expand Up @@ -59,7 +60,6 @@
height: 100%;
width: 100%;
overflow: auto;
}
</style>

0 comments on commit fb98da2

Please sign in to comment.