1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 17:58:26 +02:00

Add fullscreen mode for chat

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-04-27 16:16:57 +02:00
parent ca91842c2d
commit 2d706b2b81
4 changed files with 44 additions and 20 deletions

View File

@ -3,6 +3,8 @@
{% load static %}
{% load i18n %}
{% block content-title %}{% endblock %}
{% block content %}
<noscript>
{% trans "JavaScript must be enabled on your browser to access chat." %}
@ -17,7 +19,8 @@
</div>
</div>
<div class="card tab-content w-100 mh-100" style="height: 95vh" id="nav-channels-content">
<div class="card tab-content w-100 mh-100{% if request.GET.fullscreen == '1' %} position-absolute top-0 start-0 vh-100 z-3{% endif %}"
style="height: 95vh" id="chat-container">
<div class="card-header">
<h3>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#channelSelector"
@ -25,6 +28,9 @@
<span class="navbar-toggler-icon"></span>
</button>
<span id="channel-title"></span>
<button class="btn float-end" type="button" onclick="toggleFullscreen()" title="{% trans "Toggle fullscreen mode" %}">
<i class="fas fa-expand"></i>
</button>
</h3>
</div>
<div class="card-body overflow-y-scroll mw-100 h-100 flex-grow-0" id="chat-messages">