Skip to content

Commit

Permalink
Added bottom padding to accomodate status bar
Browse files Browse the repository at this point in the history
  • Loading branch information
notangelmario committed Oct 11, 2022
1 parent d9ee217 commit 9f8b7ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lib/editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export function initEditor(editorWrapper: HTMLElement, store: Store) {
fontLigatures: true,
padding: {
top: 32,
bottom: 16
},
theme: theme === "dark" ? "vs-dark" : "vs",
insertSpaces: false,
Expand Down Expand Up @@ -84,6 +85,7 @@ function addActions(editor: monaco.editor.IStandaloneCodeEditor, store: Store) {
// but it is not stored in store
// try to create a new file handle
// Do not touch this. It's only a safety precaution
//
// The user would rather have to see another popup
// then to lose all work on a specific file
if (!fileHandle) {
Expand All @@ -105,6 +107,7 @@ function addActions(editor: monaco.editor.IStandaloneCodeEditor, store: Store) {
});
editor.addAction({
id: "miniated.export_markdown",
precondition: "fileAvailable",
label: "Export Markdown File to HTML...",
run: exportToMarkdown,
keybindings: [monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyE]
Expand Down

0 comments on commit 9f8b7ba

Please sign in to comment.