feat: enable text-overflow ellipsis in welcome message for username
This commit is contained in:
parent
03294771a5
commit
a013402e23
2 changed files with 54 additions and 9 deletions
|
|
@ -8,7 +8,7 @@
|
||||||
</div>
|
</div>
|
||||||
@if (!isLoading) {
|
@if (!isLoading) {
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="left-container">
|
<div class="summary-container">
|
||||||
<!-- Top Frame -->
|
<!-- Top Frame -->
|
||||||
<div class="top-frame">
|
<div class="top-frame">
|
||||||
<div class="todo-done" routerLink="/board">
|
<div class="todo-done" routerLink="/board">
|
||||||
|
|
@ -97,7 +97,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Greeting -->
|
<!-- Greeting -->
|
||||||
<div class="right-container">
|
<div class="welcome-container">
|
||||||
<p>{{ greeting }},</p>
|
<p>{{ greeting }},</p>
|
||||||
@if (currentUser) {
|
@if (currentUser) {
|
||||||
<span id="welcome-user">
|
<span id="welcome-user">
|
||||||
|
|
@ -109,7 +109,7 @@
|
||||||
</div>
|
</div>
|
||||||
} @else {
|
} @else {
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="left-container">
|
<div class="summary-container">
|
||||||
<app-loading-spinner></app-loading-spinner>
|
<app-loading-spinner></app-loading-spinner>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -3,16 +3,19 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 73px;
|
height: 73px;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 61px;
|
font-size: 61px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
padding-right: 24px;
|
padding-right: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.metrics-txt {
|
.metrics-txt {
|
||||||
font-size: 27px;
|
font-size: 27px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
padding-left: 24px;
|
padding-left: 24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue-bar {
|
.blue-bar {
|
||||||
height: 80%;
|
height: 80%;
|
||||||
width: 3px;
|
width: 3px;
|
||||||
|
|
@ -23,25 +26,35 @@
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-top: 48px;
|
margin-top: 48px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.right-container {
|
.welcome-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
flex: 1;
|
||||||
margin-left: 48px;
|
margin-left: 48px;
|
||||||
|
min-width: 0;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 47px;
|
font-size: 47px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 64px;
|
font-size: 64px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
max-width: 100%;
|
||||||
|
display: block;
|
||||||
color: var(--light-blue);
|
color: var(--light-blue);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.left-container {
|
.summary-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
@ -66,16 +79,20 @@
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
transform: scale(1.02);
|
transform: scale(1.02);
|
||||||
transition: 500ms ease-out;
|
transition: 500ms ease-out;
|
||||||
background-color: var(--dark-blue);
|
background-color: var(--dark-blue);
|
||||||
|
|
||||||
p,
|
p,
|
||||||
span {
|
span {
|
||||||
color: var(--white);
|
color: var(--white);
|
||||||
}
|
}
|
||||||
|
|
||||||
.circle {
|
.circle {
|
||||||
background-color: var(--white);
|
background-color: var(--white);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(30deg)
|
filter: invert(100%) sepia(0%) saturate(2%) hue-rotate(30deg)
|
||||||
brightness(104%) contrast(101%);
|
brightness(104%) contrast(101%);
|
||||||
|
|
@ -86,20 +103,24 @@
|
||||||
|
|
||||||
.urgent {
|
.urgent {
|
||||||
width: 560px;
|
width: 560px;
|
||||||
|
|
||||||
.right {
|
.right {
|
||||||
width: 58%;
|
width: 58%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 52%;
|
width: 52%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
height: 100px;
|
height: 100px;
|
||||||
width: 2px;
|
width: 2px;
|
||||||
background-color: var(--gray);
|
background-color: var(--gray);
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 69px;
|
height: 69px;
|
||||||
width: 69px;
|
width: 69px;
|
||||||
|
|
@ -115,12 +136,14 @@
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
width: 130px;
|
width: 130px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
padding: 0 24px;
|
padding: 0 24px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 64px;
|
font-size: 64px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
|
|
@ -135,6 +158,7 @@
|
||||||
width: 69px;
|
width: 69px;
|
||||||
border-radius: 100%;
|
border-radius: 100%;
|
||||||
background-color: var(--dark-blue);
|
background-color: var(--dark-blue);
|
||||||
|
|
||||||
img {
|
img {
|
||||||
height: 32px;
|
height: 32px;
|
||||||
width: 32px;
|
width: 32px;
|
||||||
|
|
@ -144,14 +168,17 @@
|
||||||
.date {
|
.date {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.spacer {
|
.spacer {
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
}
|
}
|
||||||
|
|
@ -159,8 +186,8 @@
|
||||||
|
|
||||||
/*------------- RESPONSIVE -------------*/
|
/*------------- RESPONSIVE -------------*/
|
||||||
|
|
||||||
@media screen and (max-width: 1500px) {
|
@media screen and (max-width: 1150px) {
|
||||||
.right-container {
|
.welcome-container {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -170,6 +197,7 @@
|
||||||
.title {
|
.title {
|
||||||
font-size: 50px;
|
font-size: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.metrics-txt {
|
.metrics-txt {
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
}
|
}
|
||||||
|
|
@ -191,9 +219,11 @@
|
||||||
padding: 0;
|
padding: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
|
||||||
.metrics-txt {
|
.metrics-txt {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.blue-bar {
|
.blue-bar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -15px;
|
bottom: -15px;
|
||||||
|
|
@ -204,7 +234,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 650px) {
|
@media screen and (max-width: 650px) {
|
||||||
.left-container {
|
.summary-container {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -225,6 +255,7 @@
|
||||||
margin: 20px 0;
|
margin: 20px 0;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
width: auto;
|
width: auto;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
margin-left: 10%;
|
margin-left: 10%;
|
||||||
}
|
}
|
||||||
|
|
@ -244,17 +275,19 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 520px) {
|
@media screen and (max-width: 520px) {
|
||||||
.left-container {
|
.summary-container {
|
||||||
height: fit-content;
|
height: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.todo-done,
|
.todo-done,
|
||||||
.tasks {
|
.tasks {
|
||||||
height: 120px;
|
height: 120px;
|
||||||
|
|
||||||
.circle {
|
.circle {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
@ -263,6 +296,7 @@
|
||||||
|
|
||||||
.urgent {
|
.urgent {
|
||||||
height: 120px;
|
height: 120px;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
|
|
@ -271,9 +305,11 @@
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 38px;
|
font-size: 38px;
|
||||||
}
|
}
|
||||||
|
|
@ -291,6 +327,7 @@
|
||||||
p {
|
p {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 21px;
|
font-size: 21px;
|
||||||
}
|
}
|
||||||
|
|
@ -302,6 +339,7 @@
|
||||||
.title {
|
.title {
|
||||||
font-size: 47px;
|
font-size: 47px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.metrics-txt {
|
.metrics-txt {
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
}
|
}
|
||||||
|
|
@ -313,6 +351,7 @@
|
||||||
height: 100px;
|
height: 100px;
|
||||||
border-radius: 30px;
|
border-radius: 30px;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
|
||||||
.line {
|
.line {
|
||||||
height: 80px;
|
height: 80px;
|
||||||
}
|
}
|
||||||
|
|
@ -322,6 +361,7 @@
|
||||||
p {
|
p {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
@ -347,6 +387,7 @@
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
}
|
}
|
||||||
|
|
@ -356,6 +397,7 @@
|
||||||
p {
|
p {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
@ -363,6 +405,7 @@
|
||||||
|
|
||||||
.tasks {
|
.tasks {
|
||||||
height: 120px;
|
height: 120px;
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
p {
|
p {
|
||||||
padding: 8px 0;
|
padding: 8px 0;
|
||||||
|
|
@ -380,6 +423,7 @@
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
width: 75px;
|
width: 75px;
|
||||||
|
|
||||||
p {
|
p {
|
||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
@ -389,6 +433,7 @@
|
||||||
p {
|
p {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
}
|
}
|
||||||
|
|
||||||
span {
|
span {
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue