Skip to content

Commit

Permalink
corretly format app.css and store.ts (changelog)
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelmagueijo committed Aug 18, 2024
1 parent a385380 commit 4ff9cb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

body.modal-open {
position: fixed;
}
}
12 changes: 6 additions & 6 deletions frontend/src/components/Changelog/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ import { writable } from "svelte/store";
import { browser } from "$app/environment";

function modalStoreFunctions() {
const { subscribe, set } = writable<boolean>(false);
const { subscribe, set } = writable<boolean>(false);

return {
return {
subscribe,
open: () => {
open: () => {
console.log(document.body.scrollTop);
set(true);
if (browser) {
Expand All @@ -18,8 +18,8 @@ function modalStoreFunctions() {
if (browser) {
document.body.classList.remove("modal-open");
}
}
};
},
};
}

export const modalStore = modalStoreFunctions();
export const modalStore = modalStoreFunctions();

0 comments on commit 4ff9cb1

Please sign in to comment.