small fix

This commit is contained in:
Victor Batischev 2024-02-06 18:22:06 +03:00
parent e9235884dd
commit ef8a0813b3
6 changed files with 56 additions and 75 deletions

View File

@ -24,9 +24,13 @@ const ArchiveTableTracker = ({ filterCompleteTasks, loader }) => {
); );
}) })
) : ( ) : (
<div className="archive__noItem"> <tr>
<p>В данном месяце у вас не было задач</p> <td>
</div> <div className="archive__noItem">
<p>В данном месяце у вас не было задач</p>
</div>
</td>
</tr>
)} )}
</> </>
)} )}

View File

@ -135,7 +135,7 @@
.edit-column { .edit-column {
// background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%); // background: linear-gradient(180deg, #fff 0%, #ebebeb 37.29%);
.title-project { .title-project {
margin-top: 20px; margin-top: 8px;
} }
.button-add { .button-add {
margin-top: 8px; margin-top: 8px;

View File

@ -972,7 +972,7 @@ export const TicketFullScreen = () => {
</div> </div>
<div className="time"> <div className="time">
<img src={watch}></img> <img src={watch}></img>
<span>Длительность : </span> <span>Длительность: </span>
<p> <p>
{correctTimerTime(currentTimerCount.hours)}: {correctTimerTime(currentTimerCount.hours)}:
{correctTimerTime(currentTimerCount.minute)}: {correctTimerTime(currentTimerCount.minute)}:

View File

@ -793,55 +793,49 @@ export const TrackerModal = ({
{modalType === "edit-column" && ( {modalType === "edit-column" && (
<div> <div>
<div className="title-project"> <div className="title-project">
<h4>Введите новое название</h4> <div>
<div className="input-container"> <h4>Название колонки</h4>
<input <div className="input-container">
className="name-project" <input
value={columnName} className="name-project"
onChange={(e) => dispatch(setColumnName(e.target.value))} value={columnName}
/> onChange={(e) => dispatch(setColumnName(e.target.value))}
/>
</div>
</div> </div>
<h4>Приоритет колонки</h4> <div>
<div <h4>Приоритет колонки</h4>
className={ <div
selectColumnPriorityOpen className={
? "select-priority select-priority--open" selectColumnPriorityOpen
: "select-priority" ? "select-priority select-priority--open"
} : "select-priority"
onClick={() => }
setSelectColumnPriorityOpen(!selectColumnPriorityOpen) onClick={() =>
} setSelectColumnPriorityOpen(!selectColumnPriorityOpen)
> }
<span>{selectColumnPriority}</span> >
<img src={arrowDown} alt="arrow" /> <span>{selectColumnPriority}</span>
{selectColumnPriorityOpen && ( <img src={arrowDown} alt="arrow" />
<div className="select-priority__dropDown"> {selectColumnPriorityOpen && (
{projectBoard.columns.map((column, index) => { <div className="select-priority__dropDown">
return ( {projectBoard.columns.map((column, index) => {
<span return (
key={column.id} <span
onClick={() => { key={column.id}
setSelectColumnPriority(index + 1); onClick={() => {
dispatch(setColumnPriority(index + 1)); setSelectColumnPriority(index + 1);
}} dispatch(setColumnPriority(index + 1));
> }}
{index + 1} >
</span> {index + 1}
); </span>
})} );
</div> })}
)} </div>
)}
</div>
</div> </div>
{/*<div className="input-container">*/}
{/* <input*/}
{/* className="name-project"*/}
{/* placeholder="Приоритет колонки"*/}
{/* type="number"*/}
{/* step="1"*/}
{/* value={columnPriority}*/}
{/* onChange={(e) => dispatch(setColumnPriority(e.target.value))}*/}
{/* />*/}
{/*</div>*/}
</div> </div>
<BaseButton styles={"button-add"} onClick={changeColumnParams}> <BaseButton styles={"button-add"} onClick={changeColumnParams}>
Сохранить Сохранить

View File

@ -30,13 +30,12 @@
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
row-gap: 8px; row-gap: 12px;
padding-bottom: 10px; padding-bottom: 15px;
.select-priority { .select-priority {
background-color: white; background-color: white;
width: 100%; width: 100%;
margin: 12px 0;
padding: 10px 8px; padding: 10px 8px;
border-radius: 8px; border-radius: 8px;
font-size: 14px; font-size: 14px;

View File

@ -397,15 +397,8 @@ export const ProjectTracker = () => {
div.classList.contains("tags__list")) div.classList.contains("tags__list"))
) )
) { ) {
setTags({ setTags({ open: false, add: false, edit: false });
open: false, setTagInfo({ description: "", name: "" });
add: false,
edit: false
});
setTagInfo({
description: "",
name: ""
});
setColor("#aabbcc"); setColor("#aabbcc");
} }
@ -962,20 +955,11 @@ export const ProjectTracker = () => {
src={commentsBoard} src={commentsBoard}
alt="commentsImg" alt="commentsImg"
/> />
<span> <span>{task.comment_count}</span>
{task.comment_count}{" "}
{/* {caseOfNum(
task.comment_count,
"comments"
)} */}
</span>
</div> </div>
<div className="tasks__board__item__info__more"> <div className="tasks__board__item__info__more">
<img src={filesBoard} alt="filesImg" /> <img src={filesBoard} alt="filesImg" />
<span> <span>{task.file_count}</span>
{task.file_count ? task.file_count : 0}{" "}
{/* {caseOfNum(0, "files")} */}
</span>
</div> </div>
</div> </div>
<TrackerSelectColumn <TrackerSelectColumn