-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BC-7415 - Make sidebar usable on tablets #3285
Conversation
@@ -16,7 +16,7 @@ | |||
</v-list-item> | |||
</template> | |||
<template v-for="child in item.children" :key="child.title"> | |||
<SidebarItem :item="child" /> | |||
<SidebarItem :item="child" :draggable="false" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does this draggable prop come from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vuedraggable uses that option to not make a component draggable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very curious about this, as the Sidebar doesn't use vuedraggable
src/layouts/newLoggedIn.layout.vue
Outdated
const sidebarExpanded = ref(isDesktop.value); | ||
|
||
const onToggleSidebar = () => { | ||
sidebarExpanded.value = !sidebarExpanded.value; | ||
}; | ||
</script> | ||
<style lang="scss" scoped> | ||
.fixed-position { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather use !isDesktop
and vuetify's utility classes here position-fixed w-100
, but it's fine :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uhh thats a good point, thx, will adjust :)
Quality Gate passedIssues Measures |
@@ -16,7 +16,7 @@ | |||
</v-list-item> | |||
</template> | |||
<template v-for="child in item.children" :key="child.title"> | |||
<SidebarItem :item="child" /> | |||
<SidebarItem :item="child" :draggable="false" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very curious about this, as the Sidebar doesn't use vuedraggable
Short Description
Links to Ticket and related Pull-Requests
BC-7415
hpi-schul-cloud/schulcloud-client#3457
Changes
(see Description)
Checklist before merging