style(ui): improve styling of Message component
- increase profile picture size - improve vertical and horizontal centering - improve the way margins and gaps are styled - adjust grid CSS
This commit is contained in:
parent
31b0d2e7eb
commit
02479072f6
1 changed files with 9 additions and 8 deletions
|
@ -189,9 +189,8 @@ function getDayDifference(date1: Date, date2: Date) {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
/* border: 1px solid lightcoral; */
|
/* border: 1px solid lightcoral; */
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 2rem 1fr;
|
grid-template-columns: 4rem 1fr;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 1dvw;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
overflow-wrap: anywhere;
|
overflow-wrap: anywhere;
|
||||||
}
|
}
|
||||||
|
@ -225,10 +224,9 @@ function getDayDifference(date1: Date, date2: Date) {
|
||||||
|
|
||||||
.message-data {
|
.message-data {
|
||||||
/* border: 1px solid white; */
|
/* border: 1px solid white; */
|
||||||
margin-left: .5dvw;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
height: fit-content;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
|
@ -240,10 +238,10 @@ function getDayDifference(date1: Date, date2: Date) {
|
||||||
}
|
}
|
||||||
|
|
||||||
.message-author-avatar {
|
.message-author-avatar {
|
||||||
min-height: 2em;
|
min-height: 2.5em;
|
||||||
max-height: 2em;
|
max-height: 2.5em;
|
||||||
min-width: 2em;
|
min-width: 2.5em;
|
||||||
max-width: 2em;
|
max-width: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-column {
|
.left-column {
|
||||||
|
@ -254,8 +252,11 @@ function getDayDifference(date1: Date, date2: Date) {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
grid-row: 2;
|
grid-row: 2;
|
||||||
grid-column: 1;
|
grid-column: 1;
|
||||||
|
height: 100%;
|
||||||
|
align-items: start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.author-username {
|
.author-username {
|
||||||
margin-right: .5dvw;
|
margin-right: .5dvw;
|
||||||
color: white;
|
color: white;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue