Skip to content

Commit 6688e43

Browse files
authored
Merge pull request #31 from ls1intum/fix-document-upload-delete
Make chat layout more mobile friendly
2 parents 9653cf6 + 599c497 commit 6688e43

File tree

3 files changed

+35
-5
lines changed

3 files changed

+35
-5
lines changed

.github/workflows/chatbot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
organisation: 2,
3939
filterByOrg: true,
4040
chatbotUrl: 'https://chatbot.ase.cit.tum.de/chat',
41-
loginRequired: false
41+
loginRequired: true
4242
};" > chatbot-ui/src/environments/environment.prod.ts
4343
4444
- name: Build & Push (Org 2)

chatbot-ui/src/app/chat/chat.component.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,9 @@ $logo-size: 40px;
141141
display: flex;
142142
flex-direction: column; // Keeps warning below input field
143143
padding: 10px;
144+
position: sticky;
145+
bottom: 0;
146+
z-index: 5;
144147
background-color: $tum-acordion-blue;
145148
border-top: 1px solid $border-color;
146149

@@ -212,7 +215,6 @@ $logo-size: 40px;
212215
align-items: center;
213216
justify-content: space-between;
214217
white-space: nowrap;
215-
overflow: hidden;
216218
text-overflow: ellipsis;
217219
max-width: 100%;
218220
margin-top: 4px;

chatbot-ui/src/app/utils/header/header.component.scss

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,42 @@
77
color: #fff;
88
height: 50px;
99
padding: 8px 32px;
10+
11+
@media (max-width: 600px) {
12+
padding: 6px 12px;
13+
}
1014
}
1115

12-
.sa-logo { height: 50px; object-fit: contain; }
13-
.kb-logo { width: 24px; height: 24px; object-fit: contain; }
16+
.sa-logo {
17+
height: 50px;
18+
object-fit: contain;
19+
20+
@media (max-width: 600px) {
21+
height: 36px;
22+
}
23+
}
24+
.kb-logo {
25+
width: 24px;
26+
height: 24px;
27+
object-fit: contain;
28+
29+
@media (max-width: 600px) {
30+
width: 20px;
31+
height: 20px;
32+
}
33+
}
1434

1535
.header-right { display: flex; align-items: center; gap: 24px; }
1636

1737
.partner {
1838
display: flex; align-items: center; gap: 6px;
19-
.made-at { font-size: .85rem; font-weight: 500; white-space: nowrap; }
39+
.made-at {
40+
font-size: .85rem;
41+
font-weight: 500;
42+
white-space: nowrap;
43+
44+
@media (max-width: 600px) {
45+
font-size: 0.75rem;
46+
}
47+
}
2048
}

0 commit comments

Comments
 (0)