Skip to content

Commit d9c6276

Browse files
authored
Merge pull request #190 from epam/EPMUII-8820-main-app-layout-broken-on-mobile-devies
EPMUII-8820: fixing of main app layout for mobile devices completed
2 parents 9b903af + 86480be commit d9c6276

File tree

5 files changed

+32
-14
lines changed

5 files changed

+32
-14
lines changed

src/ui/Button/Button.module.css

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,21 @@ button:hover,
4848
background-color: var(--red);
4949
}
5050

51+
.button > svg {
52+
width: 42px;
53+
height: 42px;
54+
}
55+
5156
@media screen and (min-width: 768px) {
5257
.reset {
5358
display: flex;
5459
justify-content: flex-end;
5560
}
61+
62+
.button > svg {
63+
width: 24px;
64+
height: 24px;
65+
}
5666
}
5767
.reset {
5868
display: inline-block;
@@ -82,11 +92,6 @@ button:hover,
8292
border-radius: 36px;
8393
}
8494

85-
.button > svg {
86-
width: 24px;
87-
height: 24px;
88-
}
89-
9095
.rounded {
9196
overflow: hidden;
9297
border-radius: 50%;

src/ui/Header/Header.module.css

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
.header {
22
display: flex;
33
gap: 5px;
4+
width: 95%;
5+
min-width: 432px;
6+
justify-content: space-between;
47
z-index: 12;
58
}
69

710
.header_button {
811
font-size: 0;
9-
background-color: white;
12+
background-color: inherit;
13+
}
14+
15+
@media screen and (min-width: 768px) {
16+
.header {
17+
gap: 5px;
18+
justify-content: flex-end;
19+
}
20+
21+
.header_button {
22+
font-size: 0;
23+
background-color: white;
24+
}
1025
}

src/ui/Main.module.css

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,8 @@
2727
display: flex;
2828
justify-content: center;
2929
align-items: center;
30-
flex-direction: row-reverse;
31-
width: 100vw;
32-
right: 0;
30+
flex-direction: row;
31+
width: 96vw;
3332
height: 50px;
3433
padding: 1rem;
3534
background-color: var(--beige);
@@ -116,12 +115,14 @@
116115

117116
.header__right {
118117
display: flex;
118+
flex-direction: row-reverse;
119119
justify-content: flex-start;
120120
flex-wrap: nowrap;
121121
align-items: center;
122122
margin-left: auto;
123123
position: static;
124124
background: inherit;
125+
right: 0;
125126
}
126127

127128
.left {

src/ui/OpenFile/UiReportMenu.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ export const UiReportMenu = () => {
4646
const strDisabled = !isLoadedLocal;
4747
return (
4848
<>
49-
<Tooltip content="Show tags">
49+
<Tooltip content="About">
5050
<UIButton
51-
text="About"
5251
cx={cx(css.button, css['report-menu__report'])}
5352
icon="report"
5453
rounded
@@ -59,7 +58,6 @@ export const UiReportMenu = () => {
5958
</Tooltip>
6059
<Tooltip content="Screenshot">
6160
<UIButton
62-
text="Screenshot"
6361
cx={cx(css.button, css['report-menu__camera'])}
6462
icon="camera"
6563
rounded

src/ui/OpenFile/UiSaveMenu.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,8 @@ export const UiSaveMenu = () => {
2929
};
3030
return (
3131
<>
32-
<Tooltip content="Save Nifti">
32+
<Tooltip content="Download">
3333
<UIButton
34-
text="Download"
3534
cx={cx(css.button, css['download__link'])}
3635
rounded
3736
icon="download"

0 commit comments

Comments
 (0)