Skip to content

Commit

Permalink
fix: Avoid Drag Effect In App Center Drawer when Mobile - MEED-8348 -
Browse files Browse the repository at this point in the history
…Meeds-io/MIPs#175

Prior to this change, the Draggable component is enabled on mobile. This change will delete this effect to enhance UX.
  • Loading branch information
boubaker authored and exo-swf committed Feb 6, 2025
1 parent b716aa2 commit 1b0e5ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
slot="content"
class="content">
<v-layout v-if="favoriteApplicationsList.length > 0" class="favorite appsContainer">
<draggable
<component
:is="$root.isMobile && 'div' || 'draggable'"
v-model="favoriteApplicationsList"
class="appLauncherList"
@start="drag=true"
Expand Down Expand Up @@ -83,7 +84,7 @@ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
</a>
</div>
</div>
</draggable>
</component>
</v-layout>
</div>
<div
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ export function init(isAdmin) {
i18nPromise: i18nPromise,
isAdmin,
},
computed: {
isMobile() {
return this.$vuetify.breakpoint.smAndDown;
},
},
template: `<app-center-launcher-drawer id="${appId}" :i18n-promise="i18nPromise" />`,
vuetify: Vue.prototype.vuetifyOptions,
i18n: exoi18n.i18n,
Expand Down

0 comments on commit 1b0e5ab

Please sign in to comment.