Skip to content

Commit

Permalink
update css styles
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopkop committed Apr 1, 2024
1 parent 8922401 commit 220ff06
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 44 deletions.
49 changes: 48 additions & 1 deletion frontend/src/styles/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -112,4 +112,51 @@ a {
.some-text {
color: #7SDBAD;
text-shadow: 0 0 5px #NONONO;
}
}

.tile-header {
display: flex;
padding: 10px 0px 10px 0px;
justify-content: space-between;
}
.messages-history {
position: relative;
display: flex;
flex-direction: column-reverse;
padding: 10px 0px 10px 0px;
min-height: 0;
height: calc(0.7 * 700px);
width: 100%;
overflow-y: scroll;
overflow-x: hidden;
}
.tile-actions {
display: flex;
flex-direction: row;
justify-content: space-between;
margin-top: 20px;
}

.message-tile {
padding: 20px;
max-width: 50%;
margin: 10px 0px 10px 0px;
}

.align-right {
position: relative;
left: 100%;
translate: -105%;
background-color: #0f62fe;
margin-right: 10px;
}

.align-left {
background-color: #6f6f6f;
}
.snackbar {
position: absolute;
top: 0;
left: 0;
width: 100%;
}
67 changes: 24 additions & 43 deletions frontend/src/styles/chat.css
Original file line number Diff line number Diff line change
@@ -1,57 +1,38 @@
.message-container {
height: calc(100vh - 100px); /* Adjust height as needed */
overflow-y: auto;
padding: 10px;
}

.message-list {
list-style-type: none;
padding: 0;
}

.message-item {
.chat-container {
display: flex;
justify-content: flex-start;
margin-bottom: 10px;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100vh;
}

.message-item.me .message-content {
background-color: #dcf8c6;
border-bottom-right-radius: 0;
.chat-header {
margin-bottom: 20px;
}

.message-item.other .message-content {
background-color: #e5e5ea;
border-bottom-left-radius: 0;
}

.message-content {
max-width: 70%;
padding: 10px 15px;
border-radius: 15px;
}

.message-text {
color: #000;
}

/* Optional: Add styles for sender's name */
.message-item .sender-name {
font-size: 0.8rem;
color: #666;
margin-bottom: 5px;
.chat-messages {
overflow-y: auto;
max-height: 60vh;
width: 80%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 5px;
background-color: #f9f9f9;
}

/* Optional: Add scrollbar style */
::-webkit-scrollbar {
width: 8px;
.chat-input {
display: flex;
align-items: center;
width: 80%;
margin-top: 20px;
}

::-webkit-scrollbar-thumb {
background-color: rgba(0, 0, 0, 0.2);
border-radius: 4px;
.chat-input > * {
margin-right: 10px;
}

::-webkit-scrollbar-thumb:hover {
background-color: rgba(0, 0, 0, 0.4);
.chat-input button {
flex-shrink: 0;
}

0 comments on commit 220ff06

Please sign in to comment.