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

EPMUII-8820: fixing of main app layout for mobile devices completed #190

Merged
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
15 changes: 10 additions & 5 deletions src/ui/Button/Button.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,21 @@ button:hover,
background-color: var(--red);
}

.button > svg {
width: 42px;
height: 42px;
}

@media screen and (min-width: 768px) {
.reset {
display: flex;
justify-content: flex-end;
}

.button > svg {
width: 24px;
height: 24px;
}
}
.reset {
display: inline-block;
Expand Down Expand Up @@ -82,11 +92,6 @@ button:hover,
border-radius: 36px;
}

.button > svg {
width: 24px;
height: 24px;
}

.rounded {
overflow: hidden;
border-radius: 50%;
Expand Down
17 changes: 16 additions & 1 deletion src/ui/Header/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,10 +1,25 @@
.header {
display: flex;
gap: 5px;
width: 95%;
min-width: 432px;
justify-content: space-between;
z-index: 12;
}

.header_button {
font-size: 0;
background-color: white;
background-color: inherit;
}

@media screen and (min-width: 768px) {
.header {
gap: 5px;
justify-content: flex-end;
}

.header_button {
font-size: 0;
background-color: white;
}
}
7 changes: 4 additions & 3 deletions src/ui/Main.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
display: flex;
justify-content: center;
align-items: center;
flex-direction: row-reverse;
width: 100vw;
right: 0;
flex-direction: row;
width: 96vw;
height: 50px;
padding: 1rem;
background-color: var(--beige);
Expand Down Expand Up @@ -116,12 +115,14 @@

.header__right {
display: flex;
flex-direction: row-reverse;
justify-content: flex-start;
flex-wrap: nowrap;
align-items: center;
margin-left: auto;
position: static;
background: inherit;
right: 0;
}

.left {
Expand Down
4 changes: 1 addition & 3 deletions src/ui/OpenFile/UiReportMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ export const UiReportMenu = () => {
const strDisabled = !isLoadedLocal;
return (
<>
<Tooltip content="Show tags">
<Tooltip content="About">
<UIButton
text="About"
cx={cx(css.button, css['report-menu__report'])}
icon="report"
rounded
Expand All @@ -59,7 +58,6 @@ export const UiReportMenu = () => {
</Tooltip>
<Tooltip content="Screenshot">
<UIButton
text="Screenshot"
cx={cx(css.button, css['report-menu__camera'])}
icon="camera"
rounded
Expand Down
3 changes: 1 addition & 2 deletions src/ui/OpenFile/UiSaveMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,8 @@ export const UiSaveMenu = () => {
};
return (
<>
<Tooltip content="Save Nifti">
<Tooltip content="Download">
<UIButton
text="Download"
cx={cx(css.button, css['download__link'])}
rounded
icon="download"
Expand Down
Loading