Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Added mobile support #776

Merged
merged 8 commits into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
#!/bin/sh
npx lint-staged
6 changes: 3 additions & 3 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/src/components/Background/Background.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
position: fixed;
width: 100%;
z-index: -1;
max-width: 100vw;
max-height: 100vh;
}
}
12 changes: 11 additions & 1 deletion client/src/components/Board/Board.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
transition: background 85ms ease-in, opacity 40ms ease-in,
border-color 85ms ease-in;
width: 100%;
min-width: 272px;

&:active {
outline: none;
Expand Down Expand Up @@ -44,8 +45,9 @@

.lists {
display: inline-flex;
height: 100%;
height: calc(100vh - 194px);
min-width: 100%;
border-radius: 2.5px;
}

.panel {
Expand All @@ -60,5 +62,13 @@

.wrapper {
margin: 0 20px;

@media only screen and (max-width: 797px) {
max-width: 100vw;
}
}

.scrollable {
min-width: 100%;
}
}
11 changes: 10 additions & 1 deletion client/src/components/BoardActions/BoardActions.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,30 @@
.action {
align-items: center;
display: flex;
flex-wrap: nowrap;
flex: 0 0 auto;
margin-right: 20px;

@media only screen and (max-width: 797px) {
gap: 10px;
}
}

.actions {
align-items: center;
display: flex;
flex-flow: norow wrap;
justify-content: flex-start;
align-items: center;
margin: 20px 20px;
gap: 20px;
}

.wrapper {
overflow-x: auto;
overflow-y: hidden;
-ms-overflow-style: none;
scrollbar-width: none;
max-width: 100vw;

&::-webkit-scrollbar {
display: none;
Expand Down
12 changes: 9 additions & 3 deletions client/src/components/BoardActions/Filters.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
display: inline-block;
outline: none;
padding: 0;
white-space: nowrap;
}

.filterItem {
Expand Down Expand Up @@ -45,10 +46,15 @@
}

.search {
height: 30px;
margin: 0 12px;
height: 24px;
transition: width 0.2s ease;
width: 280px;
width: 220px;
margin: 0 12px;

@media only screen and (min-width: 797px) {
width: 280px;
height: 30px;
}

input {
font-size: 13px;
Expand Down
13 changes: 13 additions & 0 deletions client/src/components/Card/Card.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@
background: #ebeef0;
color: #516b7a;
}

@media only screen and (max-width: 797px) {
&:focus, &:active {
background: #ebeef0;
color: #516b7a;
}
}
}

.attachment {
Expand Down Expand Up @@ -63,6 +70,12 @@
opacity: 1;
}
}

@media only screen and (max-width: 797px) {
.target {
opacity: 1;
}
}
}

.content {
Expand Down
22 changes: 22 additions & 0 deletions client/src/components/CardModal/CardModal.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@

.actions {
margin-bottom: 24px;
@media only screen and (max-width: 797px) {
margin-bottom: 10px;
width: 50%;
padding: 10px;
}
@media only screen and (max-width: 425px) {
width: 100%;
padding: unset;
}
}

.actionsTitle {
Expand Down Expand Up @@ -62,6 +71,9 @@

.contentPadding {
padding: 8px 8px 0 16px;
@media only screen and (max-width: 797px) {
width: 100% !important;
}
}

.cursorPointer {
Expand Down Expand Up @@ -154,6 +166,10 @@

.modalPadding {
padding: 0px;
@media only screen and (max-width: 797px) {
display: flex;
flex-flow: column nowrap;
}
}

.moduleHeader {
Expand Down Expand Up @@ -184,6 +200,12 @@

.sidebarPadding {
padding: 8px 16px 0 8px;
@media only screen and (max-width: 797px) {
width: 100% !important;
display: flex;
flex-flow: row wrap;
align-items: flex-start;
}
}

.text {
Expand Down
1 change: 1 addition & 0 deletions client/src/components/Fixed/Fixed.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
position: fixed;
width: 100%;
z-index: 1;
max-width: 100vw;
}
}
5 changes: 5 additions & 0 deletions client/src/components/Header/Header.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@

.userName {
margin-right: 10px;
display: none;

@media only screen and (min-width: 797px) {
display: block;
}
}

.wrapper {
Expand Down
13 changes: 13 additions & 0 deletions client/src/components/List/List.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,12 @@
&:hover .target {
opacity: 1;
}

@media only screen and (max-width: 797px) {
.target {
opacity: 1;
}
}
}

.headerEditable {
Expand All @@ -103,6 +109,13 @@
background: rgba(9, 30, 66, 0.13);
color: #516b7a;
}

@media only screen and (max-width: 797px) {
&:focus, &:active {
background: rgba(9, 30, 66, 0.13);
color: #516b7a;
}
}
}

.headerName {
Expand Down
Loading