fix calendar

This commit is contained in:
Victor Batischev 2023-12-04 20:13:10 +03:00
parent db9a7b24c6
commit 4e15f79c76
3 changed files with 11 additions and 23 deletions

View File

@ -61,9 +61,7 @@ const Calendar = () => {
</div> </div>
<div> <div>
<Link to="/report"> <Link to="/report">
<button className="calendar__btn"> <button className="calendar__btn">Заполнить отчет</button>
Заполнить отчет за день
</button>
</Link> </Link>
</div> </div>
</div> </div>

View File

@ -165,6 +165,11 @@
justify-content: center; justify-content: center;
font-weight: 500; font-weight: 500;
font-size: 12px; font-size: 12px;
@media (max-width: 500px) {
font-size: 10px;
font-weight: 400;
}
} }
img { img {
@ -181,20 +186,8 @@
} }
} }
@media (max-width: 1200px) {
width: 90px;
height: 40px;
}
@media (max-width: 968px) { @media (max-width: 968px) {
width: 62px;
height: 40px;
font-size: 10px; font-size: 10px;
@media (max-width: 610px) {
width: auto;
height: auto;
}
} }
@media (max-width: 610px) { @media (max-width: 610px) {
@ -294,12 +287,11 @@
.select { .select {
border-radius: 5px; border-radius: 5px;
border: 1px solid #c4c4c4; border: 2px solid #c4c4c4;
box-shadow: 0 0 59px rgba(44, 44, 44, 0.05); box-shadow: 0 0 59px rgba(44, 44, 44, 0.05);
padding: 5px 8px; padding: 5px 8px;
cursor: pointer; cursor: pointer;
text-align: center; text-align: center;
min-width: 350px;
} }
.close { .close {

View File

@ -64,8 +64,8 @@ export const ProfileCalendar = () => {
} }
apiRequest( apiRequest(
`/reports/reports-by-date?${requestDates}&user_card_id=${localStorage.getItem( `/reports/reports-by-date?${requestDates}&user_card_id=${localStorage.getItem(
"cardId", "cardId"
)}`, )}`
).then((reports) => { ).then((reports) => {
let spendTime = 0; let spendTime = 0;
for (const report of reports) { for (const report of reports) {
@ -110,11 +110,9 @@ export const ProfileCalendar = () => {
<Link to="/report"> <Link to="/report">
<button <button
className="calendar__btn" className="calendar__btn"
onClick={() => { onClick={() => dispatch(setReportDate(""))}
dispatch(setReportDate(""));
}}
> >
Заполнить отчет за день Заполнить отчет
</button> </button>
</Link> </Link>
</div> </div>