room details header improvement and fixes

This commit is contained in:
10G Meow 2022-04-10 11:56:24 +03:00
parent d721ff6cd3
commit 52869784a5
3 changed files with 13 additions and 6 deletions

View file

@ -18,3 +18,9 @@
.white-space-pre {
white-space: pre;
}
.v-visible {
visibility: visible;
}
.v-hidden {
visibility: hidden;
}

View file

@ -818,7 +818,9 @@ $admin-fg: white;
}
.filled-button {
min-width: 180px !important;
@media #{map-get($display-breakpoints, 'sm-and-up')} {
min-width: 180px !important;
}
}
.v-card {

View file

@ -1,23 +1,22 @@
<template>
<div v-if="room" class="room-info">
<div class="chat-header">
<v-container fluid>
<div class="room-name no-upper">{{ $t("room_info.title") }}</div>
<v-container fluid class="d-flex justify-space-between align-center">
<v-btn
id="btn-back"
text
class="header-button-left"
v-show="$navigation && $navigation.canPop()"
:class="$navigation && $navigation.canPop() ? 'v-visible' : 'v-hidden'"
@click.stop="$navigation.pop"
>
<v-icon>arrow_back</v-icon>
<span>{{ $t("menu.back") }}</span>
</v-btn>
<div class="room-name no-upper">{{ $t("room_info.title") }}</div>
<v-btn
id="btn-leave-room"
color="black"
depressed
class="header-button-right filled-button me-3"
class="filled-button"
@click.stop="showLeaveConfirmation = true"
>👋 {{ $t("room_info.leave_room") }}</v-btn
>