fix tracker card

This commit is contained in:
Victor Batischev 2024-01-30 18:28:57 +03:00
parent c59d2100d2
commit 7a5d6fc9ec
4 changed files with 31 additions and 34 deletions

View File

@ -63,9 +63,10 @@
color: #1458dd; color: #1458dd;
font-weight: 700; font-weight: 700;
font-size: 22px; font-size: 22px;
margin-left: 15px;
&__category { &__category {
margin-right: 17px; margin-right: 5px;
} }
h2, h2,
@ -613,7 +614,7 @@
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
top: 25px; top: 25px;
right: 30px; right: 20px;
width: 13px; width: 13px;
height: 13px; height: 13px;
display: flex; display: flex;
@ -654,8 +655,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
position: relative; position: relative;
margin-bottom: 5px; margin-top: 10px;
margin-top: 12px;
span { span {
color: #000000; color: #000000;
@ -688,7 +688,7 @@
.start { .start {
font-size: 12px; font-size: 12px;
margin-top: 25px; margin-top: 15px;
width: 151px; width: 151px;
height: 40px; height: 40px;
border: none; border: none;
@ -964,11 +964,11 @@
} }
&_box { &_box {
padding: 25px 85px 25px 40px; padding: 25px 0px 10px 40px;
border-bottom: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1;
&-middle { &-middle {
padding: 0px 40px 25px 40px; padding: 0px 0px 10px 35px;
border-bottom: 1px solid #f1f1f1; border-bottom: 1px solid #f1f1f1;
} }
@ -978,8 +978,8 @@
flex-direction: column; flex-direction: column;
position: relative; position: relative;
row-gap: 15px; row-gap: 10px;
padding: 22px 40px 0 40px; padding: 10px 40px 0px 40px;
border-radius: 10px; border-radius: 10px;
margin-bottom: 10px; margin-bottom: 10px;
@ -1170,10 +1170,10 @@
} }
&-bottom { &-bottom {
padding: 10px 110px 15px 56px; padding: 0px 110px 10px 35px;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 38px; line-height: 32px;
div { div {
display: flex; display: flex;

View File

@ -273,15 +273,15 @@ export const ProfileCalendarComponent = React.memo(
? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}` ? `${getCorrectDate(startDate)} - ${getCorrectDate(endDate)}`
: `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}` : `${getCorrectDate(endDate)} - ${getCorrectDate(startDate)}`
: activePeriod : activePeriod
? "Выберите диапазон на календаре" ? "Выберите диапазон на календаре"
: "Выбрать диапазон"} : "Выбрать диапазон"}
</span> </span>
<span> <span>
{totalRangeHours {totalRangeHours
? `${totalRangeHours} ${hourOfNum(totalRangeHours)}` ? `${totalRangeHours} ${hourOfNum(totalRangeHours)}`
: endDate : endDate
? "0 часов" ? "0 часов"
: ""} : ""}
</span> </span>
{endDate && ( {endDate && (
<BaseButton <BaseButton

View File

@ -233,9 +233,7 @@ export const Tracker = () => {
}} }}
> >
<img src={addProjectImg} alt="#"></img> <img src={addProjectImg} alt="#"></img>
<p className="createProjectBtn__text"> <p className="createProjectBtn__text">Добавить проект</p>
Добавить проект
</p>
</BaseButton> </BaseButton>
</> </>
)} )}
@ -320,11 +318,11 @@ export const Tracker = () => {
<div className="taskList__end"> <div className="taskList__end">
<BaseButton styles={"close-day"}> <BaseButton styles={"close-day"}>
Закрыть сегоднящний день Закрыть сегодняшний день
</BaseButton> </BaseButton>
<p> <p>
Нажимая кнопку - Закрыть сегодняшний день - вы отправляете Нажимая кнопку Закрыть сегодняшний день, вы отправляете
потрачеенное время на сверку потраченное время на сверку
</p> </p>
</div> </div>
</div> </div>

View File

@ -276,7 +276,7 @@
&__add { &__add {
display: flex; display: flex;
margin: 0 15px 0 10px; margin: 0 10px 0 15px;
.button-add-column { .button-add-column {
width: 33px; width: 33px;
@ -288,7 +288,7 @@
} }
p { p {
margin-left: 14px; margin-left: 5px;
font-weight: 300; font-weight: 300;
font-size: 14px; font-size: 14px;
line-height: 17px; line-height: 17px;
@ -521,7 +521,7 @@
margin: 0 10px; margin: 0 10px;
column-gap: 5px; column-gap: 5px;
cursor: pointer; cursor: pointer;
padding: 5px 20px; padding: 5px;
border-radius: 8px; border-radius: 8px;
border: 1px solid #e3e2e2; border: 1px solid #e3e2e2;
max-height: 30px; max-height: 30px;
@ -542,7 +542,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
display: flex; display: flex;
background: #cbd9f9; background: #99b4f3;
color: white; color: white;
font-size: 14px; font-size: 14px;
transition: all 0.15s ease; transition: all 0.15s ease;
@ -798,7 +798,7 @@
&__item { &__item {
width: 328px; width: 328px;
padding: 16px; padding: 4px 10px;
position: relative; position: relative;
box-shadow: 0px 3px 2px -2px rgba(0, 0, 0, 0.06), box-shadow: 0px 3px 2px -2px rgba(0, 0, 0, 0.06),
0px 5px 3px -2px rgba(0, 0, 0, 0.02); 0px 5px 3px -2px rgba(0, 0, 0, 0.02);
@ -854,7 +854,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
font-size: 20px; font-size: 20px;
padding-bottom: 13px; padding-bottom: 10px;
width: 24px; width: 24px;
height: 24px; height: 24px;
border: 1px solid #dddddd; border: 1px solid #dddddd;
@ -862,11 +862,11 @@
} }
&__description { &__description {
margin: 8px 0 4px; margin: 4px 0;
color: #5c6165; color: #5c6165;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 140%; line-height: 110%;
max-height: 100px; max-height: 100px;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@ -955,12 +955,11 @@
&__executor { &__executor {
display: flex; display: flex;
justify-content: space-between;
align-items: center; align-items: center;
margin: 10px 0 15px; margin-top: 2px;
padding-right: 10px;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
column-gap: 5px;
span { span {
max-width: 210px; max-width: 210px;
@ -980,7 +979,7 @@
flex-wrap: wrap; flex-wrap: wrap;
column-gap: 6px; column-gap: 6px;
row-gap: 3px; row-gap: 3px;
margin: 5px 0 10px; margin-bottom: 5px;
.tagItem { .tagItem {
padding: 3px 10px; padding: 3px 10px;
@ -1071,7 +1070,7 @@
img { img {
width: 27px; width: 27px;
height: 27px; height: 27px;
margin-right: 17px; margin-right: 5px;
} }
p { p {