Skip to content

Commit

Permalink
Fixed position problem
Browse files Browse the repository at this point in the history
  • Loading branch information
notangelmario committed Nov 6, 2023
1 parent 73810de commit 301277a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ html, body, #app {
background-color: var(--light);
}

#app {
height: calc(100% - 30px);
padding-top: 30px;
}

@media (prefers-color-scheme: dark) {
html, body, #app {
background-color: var(--dark);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function initEditor(editorWrapper: HTMLElement, store: Store) {
fontFamily: "'Fira Code', sans-serif",
fontLigatures: true,
padding: {
top: 64,
top: 32,
bottom: 16
},
theme: theme === "dark" ? "vs-dark" : "vs",
Expand Down

0 comments on commit 301277a

Please sign in to comment.