Merge pull request #123 from apuc/tracker-tasks

Tracker tasks
This commit is contained in:
NikoM1k 2023-08-10 19:08:15 +03:00 committed by GitHub
commit c74093d9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 108 additions and 15 deletions

View File

@ -15,7 +15,7 @@
position: relative; position: relative;
background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%); background: linear-gradient(180deg, #ffffff 0%, #ebebeb 100%);
border-radius: 24px; border-radius: 24px;
padding: 35px 15px 15px 15px; padding: 25px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -29,6 +29,10 @@
font-weight: 300; font-weight: 300;
margin: 12px 0 20px; margin: 12px 0 20px;
} }
@media (max-width: 805px) {
row-gap: 0;
}
} }
.invite__blocks { .invite__blocks {
@ -53,6 +57,10 @@
input { input {
height: 42px; height: 42px;
} }
@media (max-width: 500px) {
min-width: auto;
}
} }
&__btn { &__btn {
@ -61,6 +69,27 @@
width: 100%; width: 100%;
} }
} }
@media (max-width: 805px) {
flex-direction: column;
width: 100%;
span {
text-align: center;
margin: 5px 0;
}
.invitePersonBlock {
row-gap: 5px;
&__btn {
margin: 5px auto;
}
}
.addPersonBtn {
margin: 10px auto 0;
}
}
} }
.select__person { .select__person {
@ -68,11 +97,15 @@
flex-direction: column; flex-direction: column;
row-gap: 10px; row-gap: 10px;
padding: 39px 10px 29px 10px; padding: 39px 10px 29px 10px;
@media (max-width: 500px) {
padding: 10px;
}
} }
} }
.ck-editor { .ck-editor {
width: 100%; width: 100% !important;
} }
} }

View File

@ -8,6 +8,12 @@
bottom: -148px; bottom: -148px;
right: -120px; right: -120px;
@media (max-width: 1050px) {
right: 10px;
padding-top: 10px;
bottom: -160px;
}
&-menu { &-menu {
font-size: 14px; font-size: 14px;
line-height: 38px; line-height: 38px;
@ -32,6 +38,10 @@
left: 10px; left: 10px;
font-size: 21px; font-size: 21px;
color: #6f6f6f; color: #6f6f6f;
@media (max-width: 1050px) {
display: none;
}
} }
} }

View File

@ -356,7 +356,7 @@
flex-wrap: wrap; flex-wrap: wrap;
column-gap: 25px; column-gap: 25px;
row-gap: 20px; row-gap: 20px;
margin-top: 10px; margin-top: 33px;
max-height: 350px; max-height: 350px;
overflow-y: auto; overflow-y: auto;
@ -767,6 +767,7 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 0;
&:hover { &:hover {
background-color: white; background-color: white;

View File

@ -84,6 +84,16 @@
} }
} }
} }
@media (max-width: 450px) {
.workers_box {
.executor {
p {
max-width: 210px !important;
}
}
}
}
} }
.commentFullScreen { .commentFullScreen {

View File

@ -190,6 +190,10 @@
font-size: 22px; font-size: 22px;
line-height: 26px; line-height: 26px;
color: #263238 !important; color: #263238 !important;
@media (max-width: 450px) {
font-size: 18px;
}
} }
&__decs { &__decs {

View File

@ -361,13 +361,19 @@ export const ProjectTracker = () => {
</span> */} </span> */}
<p>добавить колонку</p> <p>добавить колонку</p>
</div> </div>
<div className="tasks__head__persons"> <div
className={
projectBoard.projectUsers?.length
? "tasks__head__persons"
: "tasks__head__persons noProjectUsers"
}
>
{projectBoard.projectUsers?.length > 3 && ( {projectBoard.projectUsers?.length > 3 && (
<span className="countPersons">+1...</span> <span className="countPersons">+1...</span>
)} )}
{Boolean(projectBoard.projectUsers?.length) && (
<div className="projectPersons"> <div className="projectPersons">
{projectBoard.projectUsers?.length && {projectBoard.projectUsers.slice(0, 3).map((person) => {
projectBoard.projectUsers.slice(0, 3).map((person) => {
return ( return (
<img <img
key={person.user_id} key={person.user_id}
@ -381,6 +387,7 @@ export const ProjectTracker = () => {
); );
})} })}
</div> </div>
)}
<span <span
className="addPerson" className="addPerson"
onClick={() => { onClick={() => {
@ -639,7 +646,7 @@ export const ProjectTracker = () => {
onClick={() => { onClick={() => {
if (window.innerWidth < 985) { if (window.innerWidth < 985) {
window.location.replace( window.location.replace(
`https://itguild.info/tracker/task/${task.id}` `/tracker/task/${task.id}`
); );
} }
}} }}

View File

@ -48,7 +48,6 @@
height: 60px; height: 60px;
@media (max-width: 650px) { @media (max-width: 650px) {
padding: 0 15px;
background: none; background: none;
justify-content: space-between; justify-content: space-between;
position: relative; position: relative;
@ -149,10 +148,7 @@
@media (max-width: 785px) { @media (max-width: 785px) {
row-gap: 25px; row-gap: 25px;
justify-content: center; justify-content: center;
} padding: 0 15px 20px;
@media (max-width: 460px) {
padding: 0 15px;
} }
.no-projects { .no-projects {
@ -557,6 +553,21 @@
} }
} }
.noProjectUsers {
@media (max-width: 900px) {
position: inherit;
.addPerson {
position: inherit;
}
p {
position: inherit;
margin-left: 14px;
}
}
}
&__checkBox { &__checkBox {
margin: 0 15px 0 0; margin: 0 15px 0 0;
cursor: pointer; cursor: pointer;
@ -678,6 +689,7 @@
&Dropdown { &Dropdown {
position: absolute; position: absolute;
top: 33px; top: 33px;
left: 0;
background: white; background: white;
border-radius: 8px; border-radius: 8px;
z-index: 5; z-index: 5;
@ -1023,6 +1035,11 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@media (max-width: 910px) {
right: 10px;
top: 40px;
}
&__item { &__item {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
@ -1041,6 +1058,10 @@
font-weight: 500; font-weight: 500;
font-size: 25px; font-size: 25px;
transform: scaleY(-1); transform: scaleY(-1);
@media (max-width: 900px) {
transform: none;
}
} }
&__noTasks { &__noTasks {
@ -1328,6 +1349,10 @@
} }
} }
} }
@media (max-width: 650px) {
padding-bottom: 20px;
}
} }
&__archive { &__archive {
@ -1342,6 +1367,10 @@
row-gap: 20px; row-gap: 20px;
} }
@media (max-width: 650px) {
padding-bottom: 20px;
}
.archive { .archive {
&__title { &__title {
padding-bottom: 8px; padding-bottom: 8px;
@ -1492,7 +1521,6 @@
max-height: 450px; max-height: 450px;
padding-right: 15px; padding-right: 15px;
width: 65%; width: 65%;
overflow: hidden;
@media (max-width: 1100px) { @media (max-width: 1100px) {
width: 100%; width: 100%;