Skip to content

Commit

Permalink
EPMUII-8820: have fixed navigation bar - sizes of buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriIlnitski committed Dec 18, 2023
1 parent 5995943 commit 044a884
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 15 deletions.
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
19 changes: 17 additions & 2 deletions src/ui/Header/Header.module.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,24 @@
.header {
display: flex;
gap: 5px;
gap: 3vw;
width: 95%;
min-width: 432px;
justify-content: space-between;
}

.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

0 comments on commit 044a884

Please sign in to comment.