fix styles

This commit is contained in:
Victor Batischev 2024-02-08 19:53:39 +03:00
parent 4ac2cddabe
commit f738805d1e
12 changed files with 36 additions and 35 deletions

View File

@ -23,6 +23,8 @@
.select-person { .select-person {
align-items: start; align-items: start;
margin: 0;
padding: 0;
&__info { &__info {
font-size: 15px; font-size: 15px;
@ -49,19 +51,17 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
align-items: center;
button {
// margin: 0 auto;
}
} }
.invite-person-block { .invite-person-block {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
row-gap: 20px; align-items: center;
row-gap: 10px;
&__input { &__input {
margin: 0; margin: 0;
min-width: 320px; min-width: 240px;
height: 42px; height: 42px;
input { input {
@ -75,7 +75,7 @@
&__btn { &__btn {
margin: 0; margin: 0;
max-width: 242px; max-width: 190px;
width: 100%; width: 100%;
} }
} }
@ -106,7 +106,6 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
row-gap: 10px; row-gap: 10px;
padding: 19px 10px 29px 10px;
@media (max-width: 500px) { @media (max-width: 500px) {
padding: 10px; padding: 10px;

View File

@ -87,7 +87,7 @@ const ListEmployees = ({
}} }}
> >
<span className="add-person">+</span> <span className="add-person">+</span>
<p>Добавить участников</p> <p>Добавить участника</p>
</div> </div>
</div> </div>
</ModalLayout> </ModalLayout>

View File

@ -758,8 +758,7 @@ export const ModalTiсket = ({
<div className="workers"> <div className="workers">
<div className="workers_box task__info"> <div className="workers_box task__info">
<span className="exit" onClick={() => setActive(false)}></span> <span className="exit" onClick={() => setActive(false)}></span>
<p className="workers__creator">Создатель: {task.user?.fio}</p> Создатель: <p className="workers__creator">{task.user?.fio}</p>
{executor ? ( {executor ? (
<> <>
<h5>Исполнитель: </h5> <h5>Исполнитель: </h5>
@ -819,7 +818,6 @@ export const ModalTiсket = ({
)} )}
</div> </div>
)} )}
{Boolean(members.length) && ( {Boolean(members.length) && (
<div className="members"> <div className="members">
<h5>Участники:</h5> <h5>Участники:</h5>
@ -847,7 +845,6 @@ export const ModalTiсket = ({
</div> </div>
</div> </div>
)} )}
<div className="add-worker moreItems"> <div className="add-worker moreItems">
<button <button
className="button-add-worker" className="button-add-worker"
@ -855,7 +852,7 @@ export const ModalTiсket = ({
> >
+ +
</button> </button>
<span>Добавить участников</span> <span>Добавить участника</span>
{dropListMembersOpen && ( {dropListMembersOpen && (
<div className="dropdownList"> <div className="dropdownList">
<img <img

View File

@ -860,7 +860,7 @@
&__creator { &__creator {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: #2d4a17;
max-width: 200px; max-width: 200px;
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
@ -873,6 +873,7 @@
line-height: 32px; line-height: 32px;
font-weight: 500; font-weight: 500;
display: flex; display: flex;
color: #2d4a17;
} }
} }

View File

@ -812,7 +812,7 @@ export const TicketFullScreen = () => {
<div className="workers fullScreenWorkers"> <div className="workers fullScreenWorkers">
<div className="workers_box task__info"> <div className="workers_box task__info">
<div className="workers__creator"> <div className="workers__creator">
Создатель: <p>&nbsp;{taskInfo.user?.fio}</p> Создатель: <p>{taskInfo.user?.fio}</p>
</div> </div>
{taskInfo.executor ? ( {taskInfo.executor ? (
@ -908,7 +908,7 @@ export const TicketFullScreen = () => {
> >
+ +
</button> </button>
<span>Добавить участников</span> <span>Добавить участника</span>
{dropListMembersOpen && ( {dropListMembersOpen && (
<div className="dropdownList"> <div className="dropdownList">
<img <img

View File

@ -62,7 +62,6 @@
.workers__creator { .workers__creator {
margin-bottom: 0 !important; margin-bottom: 0 !important;
display: flex; display: flex;
} }
.add-worker { .add-worker {

View File

@ -407,7 +407,7 @@ export const TrackerModal = ({
<div className="title-project select-person"> <div className="title-project select-person">
<h4>Добавьте участника</h4> <h4>Добавьте участника</h4>
<p className="select-person__info"> <p className="select-person__info">
Выберите пользователя в проекте или добавьте по e-mail Выберите пользователя в списке или добавьте по e-mail
</p> </p>
<div className="invite__blocks"> <div className="invite__blocks">
<div className="add-person-block"> <div className="add-person-block">
@ -440,7 +440,7 @@ export const TrackerModal = ({
setSelectedWorker(worker); setSelectedWorker(worker);
}} }}
> >
<p>{worker.employee.fio}</p> <span>{worker.employee.fio}</span>
<img <img
src={urlForLocal(worker.employee.avatar)} src={urlForLocal(worker.employee.avatar)}
alt="avatar" alt="avatar"
@ -473,10 +473,10 @@ export const TrackerModal = ({
/> />
</div> </div>
<BaseButton <BaseButton
styles={"button-add invite-person-block__btn"} styles={"button-add add-person-btn"}
onClick={inviteUserByEmail} onClick={inviteUserByEmail}
> >
Отправить приглашение Пригласить
</BaseButton> </BaseButton>
</div> </div>
</div> </div>

View File

@ -30,7 +30,6 @@
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
row-gap: 12px;
padding-bottom: 15px; padding-bottom: 15px;
.select-priority { .select-priority {
@ -222,7 +221,7 @@
border-radius: 5px; border-radius: 5px;
cursor: pointer; cursor: pointer;
position: relative; position: relative;
min-width: 320px; min-width: 240px;
height: 42px; height: 42px;
width: 100%; width: 100%;
@ -235,6 +234,16 @@
margin-left: 10px; margin-left: 10px;
} }
span {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-size: 13px;
max-width: 270px;
margin: 0;
font-weight: 400;
}
img { img {
transition: all 0.3s ease; transition: all 0.3s ease;
width: 20px; width: 20px;
@ -246,6 +255,7 @@
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
position: absolute; position: absolute;
width: 100%; width: 100%;
padding: 9.5px 12px; padding: 9.5px 12px;
@ -730,8 +740,7 @@
} }
.add-person-btn { .add-person-btn {
margin: 0 auto 0 0; margin: 0;
margin-top: 20px;
} }
.modal-add.active { .modal-add.active {

View File

@ -520,7 +520,6 @@ $maxWidthContainer: 1123;
.block-completed-test { .block-completed-test {
background: #ffffff; background: #ffffff;
border-radius: 12px; border-radius: 12px;
// .block-completed-test__container
&__container { &__container {
padding: 41px 35px 29px 59px; padding: 41px 35px 29px 59px;
@ -529,8 +528,6 @@ $maxWidthContainer: 1123;
flex-wrap: wrap; flex-wrap: wrap;
} }
// .block-completed-test__img
&__img { &__img {
flex: 0 0 54px; flex: 0 0 54px;
height: 60px; height: 60px;
@ -542,8 +539,6 @@ $maxWidthContainer: 1123;
} }
} }
// .block-completed-test__title
&__title { &__title {
font-weight: 700; font-weight: 700;
font-size: 18px; font-size: 18px;

View File

@ -528,7 +528,9 @@ export const ProjectTracker = () => {
</div> </div>
)} )}
{projectBoard.projectUsers?.length > 3 && ( {projectBoard.projectUsers?.length > 3 && (
<span className="countPersons">+1</span> <span className="countPersons">
+{projectBoard.projectUsers?.length - 3}
</span>
)} )}
<span <span
className="add-person" className="add-person"

View File

@ -191,7 +191,7 @@ const Statistics = () => {
</div> </div>
<div className="add-person"> <div className="add-person">
<span className="add-person__button">+</span> <span className="add-person__button">+</span>
<p>Добавить участников</p> <p>Добавить участника</p>
</div> </div>
</div> </div>
</div> </div>

View File

@ -124,8 +124,7 @@
&__content { &__content {
width: 100%; width: 100%;
background: #ffffff; background: #ffffff;
padding: 30px 0; padding-top: 20px;
margin-bottom: 10px;
&__wrapper { &__wrapper {
max-width: 1160px; max-width: 1160px;