Compare commits

...

2 Commits

Author SHA1 Message Date
Victor Batischev
7a5d6fc9ec fix tracker card 2024-01-30 18:28:57 +03:00
Victor Batischev
c59d2100d2 small fix 2024-01-30 17:40:40 +03:00
12 changed files with 65 additions and 66 deletions

View File

@ -127,7 +127,7 @@ const Candidate = () => {
<img src={rightArrow} alt="" /> <img src={rightArrow} alt="" />
</div> </div>
<div className="candidate__arrow-sp"> <div className="candidate__arrow-sp">
<span>Вернуться к списку</span> <span>К списку кандидатов</span>
</div> </div>
</div> </div>
</div> </div>

View File

@ -601,7 +601,7 @@ export const ModalTiсket = ({
<div className="content"> <div className="content">
<h3 className="title-project"> <h3 className="title-project">
<img src={category} className="title-project__category"></img> <img src={category} className="title-project__category"></img>
Проект: {projectName} {projectName}
<Link <Link
to={`/tracker/task/${task.id}`} to={`/tracker/task/${task.id}`}
className="title-project__full" className="title-project__full"
@ -761,11 +761,15 @@ export const ModalTiсket = ({
<p className="workers__creator">Создатель: {task.user?.fio}</p> <p className="workers__creator">Создатель: {task.user?.fio}</p>
{executor ? ( {executor ? (
<>
<h5>Исполнитель: </h5>
<div className="executor"> <div className="executor">
<p>Исполнитель: {executor.fio}</p> <p>{executor.fio}</p>
<img <img
src={ src={
executor?.avatar ? urlForLocal(executor.avatar) : avatarMok executor?.avatar
? urlForLocal(executor.avatar)
: avatarMok
} }
alt="avatar" alt="avatar"
/> />
@ -775,6 +779,7 @@ export const ModalTiсket = ({
onClick={() => deleteTaskExecutor()} onClick={() => deleteTaskExecutor()}
/> />
</div> </div>
</>
) : ( ) : (
<div className="add-worker moreItems "> <div className="add-worker moreItems ">
<button <button
@ -817,7 +822,7 @@ export const ModalTiсket = ({
{Boolean(members.length) && ( {Boolean(members.length) && (
<div className="members"> <div className="members">
<p>Участники:</p> <h5>Участники:</h5>
<div className="members__list"> <div className="members__list">
{members.map((member) => { {members.map((member) => {
return ( return (

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

@ -679,12 +679,12 @@ export const TicketFullScreen = () => {
<div className="tracker__tabs__content content-tabs"> <div className="tracker__tabs__content content-tabs">
<div className="tasks__head"> <div className="tasks__head">
<div className="tasks__head__wrapper tasks__head__wrapper__fullScreen"> <div className="tasks__head__wrapper tasks__head__wrapper__fullScreen">
<h5>Проект : {projectInfo.name}</h5> <h5>{projectInfo.name}</h5>
<TrackerModal <TrackerModal
active={modalAddWorker} active={modalAddWorker}
setActive={setModalAddWorker} setActive={setModalAddWorker}
></TrackerModal> />
<div className="tasks__head__persons"> <div className="tasks__head__persons">
<div className="projectPersons"> <div className="projectPersons">
@ -777,7 +777,7 @@ export const TicketFullScreen = () => {
className="link" className="link"
> >
<div className="tasks__head__back"> <div className="tasks__head__back">
<p>Вернуться на проект</p> <p>К списку задач</p>
<img src={arrow} alt="arrow" /> <img src={arrow} alt="arrow" />
</div> </div>
</Link> </Link>

View File

@ -265,9 +265,7 @@ export const TrackerModal = ({
} }
function createProject() { function createProject() {
if (nameProject === "") { if (nameProject !== "") {
return;
} else {
apiRequest("/project/create", { apiRequest("/project/create", {
method: "POST", method: "POST",
data: { data: {
@ -788,7 +786,7 @@ export const TrackerModal = ({
</div> </div>
</div> </div>
<BaseButton styles={"button-add"} onClick={createTab}> <BaseButton styles={"button-add"} onClick={createTab}>
Создать Добавить
</BaseButton> </BaseButton>
</div> </div>
)} )}

View File

@ -64,7 +64,7 @@ export const ProjectTiket = ({ project, index }) => {
dispatch(deleteProject(project)); dispatch(deleteProject(project));
showNotification({ showNotification({
show: true, show: true,
text: "Проект успешно была перемещена в архив", text: "Проект успешно был перемещен в архив",
type: "archive" type: "archive"
}); });
}); });

View File

@ -489,7 +489,7 @@ export const ProjectTracker = () => {
<div className="tracker__tabs__content__tasks tasks active__content"> <div className="tracker__tabs__content__tasks tasks active__content">
<div className="tasks__head"> <div className="tasks__head">
<div className="tasks__head__wrapper"> <div className="tasks__head__wrapper">
<h5>Проект : {projectBoard.name}</h5> <h5>{projectBoard.name}</h5>
<div className="tasks__head__add"> <div className="tasks__head__add">
<BaseButton <BaseButton
@ -765,7 +765,7 @@ export const ProjectTracker = () => {
)} )}
</div> </div>
<Link to="/profile/tracker" className="tasks__head__back"> <Link to="/profile/tracker" className="tasks__head__back">
<p>Вернуться на проекты</p> <p>К списку проектов</p>
<img src={arrow} alt="arrow" /> <img src={arrow} alt="arrow" />
</Link> </Link>
</div> </div>

View File

@ -114,7 +114,7 @@ const Statistics = () => {
<img src={arrow} alt="#" /> <img src={arrow} alt="#" />
<Link to={`/profile/tracker`} className="return-text"> <Link to={`/profile/tracker`} className="return-text">
вернуться на все проекты К списку проектов
</Link> </Link>
</div> </div>
</div> </div>

View File

@ -233,10 +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>
</> </>
)} )}
@ -321,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 {