Skip to content

Commit

Permalink
Merge pull request #54 from vimdotmd/fix-misc
Browse files Browse the repository at this point in the history
Fix misc
  • Loading branch information
Thien Do authored Sep 4, 2021
2 parents 70b0016 + 0282c48 commit c615159
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/editor/state/init/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const EDITOR_STATIC_OPTIONS: EditorOptions = {
disableMonospaceOptimizations: true,
lineNumbers: "off",
minimap: { enabled: false },
padding: { top: 150, bottom: 150 },
padding: { top: 96, bottom: 150 },
quickSuggestions: false,
roundedSelection: false,
selectionHighlight: false,
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/state/theme/colors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export const getEditorThemeColors = (
// Keybinding label border bottom color. The keybinding label is used to represent a keyboard shortcut.
// "keybindingLabel.bottomBorder": ,
// Color of the editor selection.
"editor.selectionbackground": `${theme.sub.hex()}80`,
"editor.selectionBackground": `${theme.sub.hex()}80`,
// Color of the selected text for high contrast.
// "editor.selectionForeground": ,
// Color of the selection in an inactive editor. The color must not be opaque so as not to hide underlying decorations.
Expand Down
5 changes: 2 additions & 3 deletions src/components/preview/preview.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@

/* Mimic the print paper with background */
.paper {
/* max-width: 210mm; */
border-radius: 8px;
padding: 48px 48px;
/* Total padding of container and paper should be 150 as in editor */
padding: calc(96px - 24px) 48px;
margin: auto;
background-color: rgba(var(--sub-color-rgb), 0.2);
border: solid 1px var(--sub-color);
Expand Down

0 comments on commit c615159

Please sign in to comment.