Skip to content

Commit

Permalink
Remove a prop containing fixed value.
Browse files Browse the repository at this point in the history
  • Loading branch information
alan-wu committed Jul 19, 2023
1 parent ebaf496 commit d663a12
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 18 deletions.
22 changes: 5 additions & 17 deletions src/components/DialogToolbarContent.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div :class="[{'draggable': topLevelControls == false}, 'header']">
<div class='header'>
<div class="switch-control">
<el-switch
v-if="syncMode"
Expand Down Expand Up @@ -52,7 +52,7 @@
<el-popover class="tooltip" content="Split screen" placement="bottom-end"
:open-delay="helpDelay" :appendToBody=false trigger="hover"
popper-class="header-popper"
v-show="topLevelControls">
>
<map-svg-icon :icon="activeView"
v-popover:viewPopover
:class="[{'disabled': (1 >= numberOfEntries)},
Expand All @@ -63,12 +63,12 @@
:appendToBody=false trigger="hover" popper-class="header-popper" v-show="showHelpIcon" >
<map-svg-icon icon="tooltips" slot="reference" class="header-icon" @click.native="startHelp()"/>
</el-popover>
<el-popover v-show="!isFullscreen && topLevelControls" class="tooltip"
<el-popover v-show="!isFullscreen" class="tooltip"
content="Fullscreen" placement="bottom-end" :open-delay="helpDelay"
:appendToBody=false trigger="hover" popper-class="header-popper">
<map-svg-icon icon="fullScreen" slot="reference" class="header-icon" @click.native="onFullscreen"/>
</el-popover>
<el-popover v-show="isFullscreen && topLevelControls" class="tooltip"
<el-popover v-show="isFullscreen" class="tooltip"
content="Exit fullscreen" placement="bottom-end" :open-delay="helpDelay"
:appendToBody=false trigger="hover" popper-class="header-popper">
<map-svg-icon icon="closeFullScreen" slot="reference" class="header-icon"
Expand Down Expand Up @@ -110,7 +110,7 @@
<el-popover class="tooltip" content="Get permalink" placement="bottom-end"
:open-delay="helpDelay" :appendToBody=false trigger="hover"
popper-class="header-popper"
v-show="topLevelControls && shareLink">
v-show="shareLink">
<map-svg-icon icon="permalink"
v-popover:linkPopover
class="header-icon"
Expand Down Expand Up @@ -176,10 +176,6 @@ export default {
default: true
},
topLevelControls: {
type: Boolean,
default: true
},
/**
* The current active title.
*/
Expand Down Expand Up @@ -318,14 +314,6 @@ export default {
height:32px;
}

.draggable.header:hover {
cursor:grab;
}

.draggable.header:active {
cursor:grabbing;
}

::v-deep .header-popper {
padding: 6px 4px;
font-size:12px;
Expand Down
1 change: 0 additions & 1 deletion src/components/SplitFlow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
<DialogToolbarContent
:activeId="activeDockedId"
:numberOfEntries="entries.length"
:topLevelControls="true"
:showIcons="entries[findIndexOfId(activeDockedId)].mode !== 'main'"
@onFullscreen="onFullscreen"
:showHelpIcon="true"
Expand Down

0 comments on commit d663a12

Please sign in to comment.