Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💄 Feat(bo): update messages UI #922

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions dossierfacile-bo/src/main/resources/static/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -418,30 +418,48 @@ input::-webkit-inner-spin-button {
position: relative;
}

#chat-page ul {
#chat-page .message-area {
list-style-type: none;
margin: 0;
overflow: auto;
overflow-y: scroll;
padding: 0 20px 0px 20px;
height: calc(100vh - 220px);
height: 500px;
margin-top:10px;
margin-bottom:5px;
border-radius: 5px;
}

#chat-page .custom-message {
list-style-type: none;
padding: 0;
display: flex;
flex-direction: column;
gap: 2rem;
}

#chat-page #messageForm {
padding: 20px;
}

#chat-page ul li {
#chat-page .message-area li {
line-height: 1.5rem;
padding: 10px 20px;
margin: 0;
}

#chat-page .message-area .custom-message > li {
padding: 0;
display: flex;
flex-direction: column;
gap: 1rem;
}

ul.customMessage li:not(:last-child) {
border-bottom: 1px solid var(--bs-secondary-bg-subtle);
}

#chat-page ul li p {
#chat-page .message-area li p {
margin: 0;
}

Expand Down Expand Up @@ -509,10 +527,6 @@ ul.customMessage li:not(:last-child) {

}

#chat-page ul {
height: calc(100% - 120px);
}

#messageForm .input-group button {
width: 65px;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
<div class="chat-container bg-primary-subtle">
<div class="row hidden-xs">
<div class="col-md-12">
<ul th:id="'messageArea' + ${tenant.getId()}" style="height: 500px;margin-top:10px;
margin-bottom:5px;border-radius: 5px;" class="bg-light-subtle">
<ul th:id="'messageArea' + ${tenant.getId()}" class="message-area bg-light-subtle">
<li class="chat-message"
style="border-radius: 10px;margin-top:10px;margin-bottom:10px;"
th:each="message: ${messages}" th:classappend="${message.getFromUser()==null}?'bg-secondary-subtle':'bg-dark-subtle'"
Expand Down
Loading