Skip to content
Snippets Groups Projects
Commit 352975ff authored by Zara Mudassar's avatar Zara Mudassar
Browse files

Hamburger menu placing fixed/adjusted

parent bc2d0dd4
No related branches found
No related tags found
1 merge request!69Join open communities
Pipeline #178795 failed
...@@ -28,35 +28,31 @@ ...@@ -28,35 +28,31 @@
</div> </div>
</div> </div>
<div> <div>
<span class="hidden sm:block"> <!-- If the user is not a member in the community, this button will show -->
<div v-if="!member">
<!-- If the user is not a member in the community, this button will show --> <ColoredButton
<div v-if="!member"> v-if="!member"
<ColoredButton :text="'Bli med'"
v-if="!member" @click="joinCommunity(community.communityId)"
:text="'Bli med'" class="m-2"
@click="joinCommunity(community.communityId)"
class="m-2"
/>
<CustomFooterModal
@close="this.dialogOpen = false"
:visible="dialogOpen"
title="Kan ikke bli med"
message="Logg inn først for å bli med i en gruppe."
/> />
</div>
<!-- If the user is member of the community, this hamburger menu will show --> <CustomFooterModal
<div v-if="member"> @close="this.dialogOpen = false"
<svg @click="toggle" xmlns="http://www.w3.org/2000/svg" class="w-9 h-9 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke="currentColor"> :visible="dialogOpen"
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" /> title="Kan ikke bli med"
</svg> message="Logg inn først for å bli med i en gruppe."
/>
</div>
<CommunityHamburger v-if="hamburgerOpen" class="origin-top-right absolute right-0" :community-i-d="community.communityId"/> <!-- class="absolute" --> <!-- If the user is member of the community, this hamburger menu will show -->
</div> <div v-if="member">
<svg @click="toggle" xmlns="http://www.w3.org/2000/svg" class="w-9 h-9 cursor-pointer" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
</svg>
</span> <CommunityHamburger v-if="hamburgerOpen" class="origin-top-right absolute right-0" :community-i-d="community.communityId"/> <!-- class="absolute" -->
</div>
</div> </div>
</div> </div>
</template> </template>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment