Skip to content

Commit

Permalink
Merge pull request #63 from 001elijah/bugfix-title-length
Browse files Browse the repository at this point in the history
Bugfix title length
  • Loading branch information
001elijah committed Jun 29, 2023
2 parents 335b05a + 966d457 commit 38d2d03
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/components/BoardItem/BoardItem.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
color: #ffffff80;

width: 135px;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

Expand Down
6 changes: 6 additions & 0 deletions src/components/HeaderDashBoard/HeaderDashBoard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@
line-height: 27px;
letter-spacing: -0.02em;

display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

&.dark {
color: $white-color;
}
Expand Down
6 changes: 6 additions & 0 deletions src/components/Modal/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
margin-bottom: 24px;
// margin-top: 24px;

display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

&.dark {
color: $white-text-color;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/ModalChangeColumn/ModalChangeColumn.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ModalChangeColumn = ({ closeModal, columnId, cardId }) => {
}}
type="button"
>
{title}
<span className={s.title}> {title}</span>
<svg
className={clsx(s.icon, s[theme], id === columnId && s.current)}
>
Expand Down
13 changes: 12 additions & 1 deletion src/components/ModalChangeColumn/ModalChangeColumn.module.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@import '../../assets/styles/vars';

.modalWrapper {
max-width: max-content;
max-width: 350px;
min-height: 86px;
padding: 18px;
border-radius: 8px;
Expand Down Expand Up @@ -57,10 +57,21 @@
}
}

.title {
text-align: left;

display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}

.icon {
width: 16px;
height: 16px;
margin-left: 8px;
flex-shrink: 0;
stroke: $black-text-color;

&.current {
Expand Down
5 changes: 4 additions & 1 deletion src/components/ModalFilter/Modal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,10 @@
}
.InputField {
&[id='without']::before {
background-color: #ffffff4d;
background-color: $priority-without-color;
}
&[id='without'].dark::before {
background-color: $priority-without-dark-theme-color;
}
&[id='low']::before {
background-color: $priority-low-color;
Expand Down
3 changes: 3 additions & 0 deletions src/components/TaskCard/TaskCard.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@
line-height: 1.5;
color: $black-text-color;

display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,18 @@
}

.title {
margin-right: 10px;
font-weight: 500;
font-size: 14px;
line-height: 1.5;
color: $black-text-color;

display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;

&.dark {
color: $white-color;
}
Expand Down

0 comments on commit 38d2d03

Please sign in to comment.