-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat(frontend): show open rooms sidebar #1273
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
<template> | ||
<div class="navigation-drawer-box d-md-none d-lg-none position-fixed mb-5 pb-5"> | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<ListWithNavigationDrawer | ||
:drawer="drawer" | ||
:location="location" | ||
@update:drawer="updateDrawer($event)" | ||
/> | ||
</div> | ||
<div | ||
class="bottom-menu d-flex w-100 position-fixed bottom-0 justify-space-around align-center py-2 bg-surface" | ||
class="bottom-menu d-flex w-100 position-fixed bottom-0 justify-space-around align-center py-2 bg-surface d-md-none d-lg-none" | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
> | ||
<Circle class="camera-button"> | ||
<Circle class="camera-button" @click="toggleDrawer"> | ||
<v-icon icon="$camera"></v-icon> | ||
</Circle> | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<CreateButtonMobile /> | ||
|
@@ -11,10 +18,22 @@ | |
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
|
||
import CreateButtonMobile from '#components/buttons/CreateButtonMobile.vue' | ||
import ListWithNavigationDrawer from '#components/vuetify/Organisms/ListWithNavigationDrawer.vue' | ||
|
||
import Circle from './CircleElement.vue' | ||
import UserInfo from './UserInfo.vue' | ||
|
||
const drawer = ref(false) | ||
const toggleDrawer = () => { | ||
drawer.value = !drawer.value | ||
} | ||
const updateDrawer = (value: boolean) => { | ||
drawer.value = value | ||
} | ||
const location = ref<'bottom' | 'right' | 'left' | 'end' | 'top' | 'start'>('bottom') | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
|
@@ -30,4 +49,21 @@ import UserInfo from './UserInfo.vue' | |
transform: translateX(20px); | ||
} | ||
} | ||
|
||
.create-button-mobile { | ||
z-index: 1; | ||
transform: translate(20px, 30px); | ||
} | ||
Comment on lines
+53
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh, I think this should not be here. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You are right if this is needed it should be in an own PR. |
||
|
||
.navigation-drawer-box { | ||
bottom: 65px; | ||
} | ||
|
||
.v-navigation-drawer { | ||
scrollbar-width: thin; | ||
} | ||
|
||
.v-navigation-drawer__content { | ||
scrollbar-width: thin; | ||
} | ||
</style> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
<LightDarkSwitch class="d-none d-lg-flex" /> | ||
</v-col> | ||
<v-col class="d-flex align-center justify-end"> | ||
<Circle> | ||
<Circle @click="toggleDrawer"> | ||
<v-icon icon="$camera"></v-icon> | ||
</Circle> | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<UserInfo class="ml-2" /> | ||
|
@@ -26,19 +26,34 @@ | |
</v-row> | ||
</v-app-bar> | ||
</div> | ||
<ListWithNavigationDrawer :drawer="drawer" :location="location" @update:drawer="updateDrawer" /> | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { ref } from 'vue' | ||
|
||
import ListWithNavigationDrawer from '#components/vuetify/Organisms/ListWithNavigationDrawer.vue' | ||
|
||
import Circle from './CircleElement.vue' | ||
import LightDarkSwitch from './LightDarkSwitch.vue' | ||
import LogoImage from './LogoImage.vue' | ||
import TabControl from './TabControl.vue' | ||
import UserInfo from './UserInfo.vue' | ||
|
||
const drawer = ref(false) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Just" naming, but I have a strong preference for |
||
const toggleDrawer = () => { | ||
drawer.value = !drawer.value | ||
} | ||
const updateDrawer = (value: boolean) => { | ||
drawer.value = value | ||
} | ||
Comment on lines
+44
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could be refactored into a composable |
||
const location = ref<'bottom' | 'right' | 'left' | 'end' | 'top' | 'start'>('right') | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.app-bar { | ||
position: static !important; | ||
position: sticky; | ||
top: 0; | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
background: transparent !important; | ||
} | ||
|
||
|
@@ -49,5 +64,6 @@ import UserInfo from './UserInfo.vue' | |
.top-menu { | ||
position: sticky; | ||
top: 0; | ||
z-index: 1000; | ||
Elweyn marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
</style> |
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.
Unintended indent change?
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 noticed that
/storybook
is in.eslintignore
, I don't see why and suggest we change it.