Skip to content

Commit b2bd3b6

Browse files
committed
[ADD] media query for mobile displays
1 parent b2ff5ef commit b2bd3b6

File tree

8 files changed

+97
-5
lines changed

8 files changed

+97
-5
lines changed
242 Bytes
Binary file not shown.

html/api/v1/oauth/callback/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
<article id="cookie_banner"></article>
4747
<article id="feedback_banner"></article>
4848
</section>
49+
<section id="chatbot_instance">
50+
<div class="chatBotAbstraction">
51+
<div class="chatbotButton"><button><img src="../../../../assets/img/AB-logo.png" width="50" height="49"></button></div>
52+
</div>
53+
</section>
4954
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
5055
<script src="../../../../assets/js/modules/cookie_manager.mjs" type="module"></script>
5156
<script src="../../../../assets/js/modules/indexeddb_manager.mjs" type="module"></script>

html/assets/css/forum_frame.css

Lines changed: 64 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@
66
.forumFrame {
77
display: flex;
88
flex-direction: row;
9-
width: 100%;
10-
height: 500px;
119
border: 1px solid black;
1210
}
1311

@@ -33,13 +31,76 @@
3331
overflow-y: auto !important;
3432
}
3533

36-
section.userInput {
34+
.userInput {
3735
gap: 10px;
3836
display: flex;
37+
padding-top: 10px;
38+
padding-left: 5px;
3939
}
4040

4141
.message_button {
4242
border: 1px transparent;
4343
border-radius: 30px;
4444
}
4545

46+
@media (max-width: 699px) {
47+
.forumFrame {
48+
width: 100%;
49+
height: 100dvh;
50+
flex-direction: column;
51+
}
52+
}
53+
54+
@media (max-width: 699px) {
55+
.aside-right {
56+
height: 30%;
57+
overflow: hidden;
58+
overflow-y: auto;
59+
}
60+
}
61+
62+
@media (max-width: 699px) {
63+
.aside-left {
64+
height: 40%;
65+
overflow: hidden;
66+
overflow-y: auto;
67+
}
68+
}
69+
70+
@media (max-width: 699px) {
71+
.chat {
72+
height: 88%;
73+
}
74+
}
75+
76+
@media (max-width: 699px) {
77+
.search-form {
78+
padding-right: 30px;
79+
}
80+
}
81+
82+
@media (max-width: 699px) {
83+
.search-input {
84+
width: 122px;
85+
}
86+
}
87+
88+
@media (min-width: 700px) {
89+
.forumFrame {
90+
width: 100%;
91+
height: 500px;
92+
}
93+
}
94+
95+
@media (min-width: 700px) {
96+
.search-form {
97+
padding-right: 30px;
98+
}
99+
}
100+
101+
@media (min-width: 700px) {
102+
.search-input {
103+
width: 122px;
104+
}
105+
}
106+

html/assets/css/widget.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
.widget {
2323
display: flex;
2424
flex-direction: column;
25-
width: 40%;
2625
height: 50%;
2726
border: black 1px groove;
2827
}
@@ -88,3 +87,15 @@
8887
text-align: left;
8988
}
9089

90+
@media (max-width: 699px) {
91+
.widget {
92+
width: 100%;
93+
}
94+
}
95+
96+
@media (min-width: 700px) {
97+
.widget {
98+
width: 40%;
99+
}
100+
}
101+

html/callback/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
<article id="cookie_banner"></article>
4747
<article id="feedback_banner"></article>
4848
</section>
49+
<section id="chatbot_instance">
50+
<div class="chatBotAbstraction">
51+
<div class="chatbotButton"><button><img src="../assets/img/AB-logo.png" width="50" height="49"></button></div>
52+
</div>
53+
</section>
4954
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
5055
<script src="../assets/js/modules/cookie_manager.mjs" type="module"></script>
5156
<script src="../assets/js/modules/indexeddb_manager.mjs" type="module"></script>

html/password/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ <h2>About you</h2><input type="text" id="loginUsername" placeholder="Username" r
157157
<article id="cookie_banner"></article>
158158
<article id="feedback_banner"></article>
159159
</section>
160+
<section id="chatbot_instance">
161+
<div class="chatBotAbstraction">
162+
<div class="chatbotButton"><button><img src="../assets/img/AB-logo.png" width="50" height="49"></button></div>
163+
</div>
164+
</section>
160165
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
161166
<script src="../assets/js/modules/cookie_manager.mjs" type="module"></script>
162167
<script src="../assets/js/modules/indexeddb_manager.mjs" type="module"></script>

html/reset-password/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,11 @@ <h2>Réanitialiser mon mot de passe</h2><input type="password" id="registerPassw
149149
<article id="cookie_banner"></article>
150150
<article id="feedback_banner"></article>
151151
</section>
152+
<section id="chatbot_instance">
153+
<div class="chatBotAbstraction">
154+
<div class="chatbotButton"><button><img src="../assets/img/AB-logo.png" width="50" height="49"></button></div>
155+
</div>
156+
</section>
152157
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
153158
<script src="../assets/js/modules/cookie_manager.mjs" type="module"></script>
154159
<script src="../assets/js/modules/indexeddb_manager.mjs" type="module"></script>

html/routes/pro/suivi/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<section class="forumFrame">
156156
<aside class="aside-left">
157157
<nav class="navbar_search">
158-
<form class="search-form"><input type="text" class="search-input" placeholder="Rechercher.."><button class="search-button" type="submit">🔍</button></form><button class="btn btn-primary" type="button" style="background-color: steelblue;">Contacter patient</button>
158+
<form class="search-form"><input type="text" class="search-input" placeholder="Rechercher.."><button class="button-primary message_button" type="button" style="background-color:steelblue;">Contacter patient</button></form>
159159
</nav>
160160
<ul class="buttonList">
161161
<li class="active"><button class="active">Lucas Houilles</button></li>

0 commit comments

Comments
 (0)