Skip to content
Snippets Groups Projects
Commit 25da4a6a authored by syuilo's avatar syuilo
Browse files

fix bug

parent e1e52839
No related branches found
No related tags found
No related merge requests found
<template>
<MkModal ref="modal" @click="$emit('click')" @closed="$emit('closed')">
<div class="hrmcaedk _popup _narrow_" :style="{ width: `${width}px`, height: (height ? `min(${height}px, 100%)` : '100%') }">
<div class="header">
<div class="header" @contextmenu="onContextmenu">
<button class="_button" @click="back()" v-if="history.length > 0"><i class="fas fa-chevron-left"></i></button>
<button class="_button" style="pointer-events: none;" v-else><!-- マージンのバランスを取るためのダミー --></button>
<span class="title">
......@@ -27,6 +27,7 @@ import copyToClipboard from '@client/scripts/copy-to-clipboard';
import { resolve } from '@client/router';
import { url } from '@client/config';
import * as symbols from '@client/symbols';
import * as os from '@client/os';
export default defineComponent({
components: {
......@@ -148,6 +149,10 @@ export default defineComponent({
popout(this.path, this.$el);
this.$refs.window.close();
},
onContextmenu(e) {
os.contextMenu(this.contextmenu, e);
}
},
});
</script>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment