Skip to content

Commit

Permalink
fix: meta keys
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdehaven committed Dec 28, 2023
1 parent 5878672 commit b774d20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 1 addition & 10 deletions src/components/toolbar/MarkdownToolbar.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<div
ref="toolbar"
class="markdown-ui-toolbar"
>
<div class="markdown-ui-toolbar">
<div class="toolbar-left">
<div
v-if="editable && mode !== 'read'"
Expand Down Expand Up @@ -182,8 +179,6 @@ const editable: Ref<boolean> = inject(EDITABLE_INJECTION_KEY, ref(false))
const fullscreen: Ref<boolean> = inject(FULLSCREEN_INJECTION_KEY, ref(false))
const htmlPreview: Ref<boolean> = inject(HTML_PREVIEW_INJECTION_KEY, ref(false))
const toolbar = ref<HTMLElement>()
const emit = defineEmits<{
(e: 'format-selection', format: InlineFormat): void
(e: 'insert-template', format: MarkdownTemplate): void
Expand Down Expand Up @@ -266,10 +261,6 @@ const templateOptions: TemplateOption[] = [
]
onMounted(() => {
// Add a `mac` class to the container if on Mac (for shortcut icons)
// @ts-ignore - property exists
toolbar.value?.classList?.toggle('mac', /Mac|iPhone|iPod|iPad/i.test(navigator?.platform) || /macOS|Mac|iPhone|iPod|iPad/i.test(navigator?.userAgentData?.platform))
// If the screen size decreases and the user is in `split` mode, turn on edit mode
adjustSplitMode()
})
Expand Down
4 changes: 4 additions & 0 deletions src/components/toolbar/TooltipShortcut.vue
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ onMounted(() => {
// Change to Command icon
&.mac:after {
content: '\2318';
font-size: var(--kui-font-size-40, $kui-font-size-40);
line-height: 0;
position: relative;
top: 2px;
}
}
}
Expand Down

0 comments on commit b774d20

Please sign in to comment.