Skip to content

Commit

Permalink
upd: new default menu style
Browse files Browse the repository at this point in the history
  • Loading branch information
solvedDev committed Jun 26, 2022
1 parent 3e63d47 commit 6acafac
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 5 deletions.
9 changes: 9 additions & 0 deletions src/components/Editors/TreeEditor/Tab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@
maxHeight: 124,
top: false,
contentClass: 'json-editor-suggestions-menu',
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:label="
isUsingBridgePredictions
Expand Down Expand Up @@ -95,6 +98,9 @@
maxHeight: 124,
top: false,
contentClass: 'json-editor-suggestions-menu',
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:label="t('editors.treeEditor.addValue')"
class="mx-4"
Expand Down Expand Up @@ -133,6 +139,9 @@
maxHeight: 124,
top: false,
contentClass: 'json-editor-suggestions-menu',
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:label="t('editors.treeEditor.edit')"
outlined
Expand Down
7 changes: 6 additions & 1 deletion src/components/Projects/CreateProject/CreateProject.vue
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,17 @@
v-model="createOptions.targetVersion"
:label="t('windows.createProject.projectTargetVersion')"
autocomplete="off"
:menu-props="{
maxHeight: 220,
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:items="availableTargetVersions"
:loading="availableTargetVersionsLoading"
class="ml-2"
outlined
dense
:menu-props="{ maxHeight: 220 }"
/>
</div>

Expand Down
3 changes: 2 additions & 1 deletion src/components/Toolbar/Menu/Activator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
v-model="item.isVisible"
min-width="260px"
offset-y
tile
z-index="11"
:nudge-top="-8"
rounded="lg"
>
<template v-slot:activator="{ on }">
<MenuButton
Expand Down
3 changes: 2 additions & 1 deletion src/components/Toolbar/Menu/MenuList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
:key="`menu.${i}.${Math.random()}`"
open-on-hover
offset-x
tile
z-index="11"
:nudge-top="-8"
rounded="lg"
>
<template v-slot:activator="{ on }">
<v-list-item
Expand Down
7 changes: 6 additions & 1 deletion src/components/Windows/Project/CreatePreset/PresetWindow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@
:disabled="opts.isLoading"
v-model="content.models[id]"
:items="opts.options"
:menu-props="{ maxHeight: 220 }"
:menu-props="{
maxHeight: 220,
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:label="name"
autocomplete="off"
outlined
Expand Down
6 changes: 6 additions & 0 deletions src/components/Windows/Project/FilePicker/FilePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@
:cache-items="false"
dense
:no-data-text="t('windows.openFile.noData')"
:menu-props="{
rounded: 'lg',
dense: true,
'nudge-top': -8,
transition: 'slide-y-transition',
}"
:filter="filter"
outlined
auto-select-first
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@
@change="onChange"
:items="config.options"
hide-details
:menu-props="{ maxHeight: 220 }"
:menu-props="{
maxHeight: 220,
rounded: 'lg',
'nudge-top': -8,
transition: 'slide-y-transition',
}"
/>
</div>

Expand Down

0 comments on commit 6acafac

Please sign in to comment.