Skip to content

Commit

Permalink
Adjust navigation and map control positions
Browse files Browse the repository at this point in the history
Change trainer bar background color
  • Loading branch information
Lawrence Owen committed Feb 13, 2025
1 parent 8490771 commit 47ebc4c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/ReactViews/Map/MapNavigation/MapNavigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const StyledMapNavigation = styled.div<StyledMapNavigationProps>`
@media (min-width: ${(props) => props.theme.sm}px) {
top: 80px;
bottom: 50px;
right: 16px;
right: 21px;
}
@media (max-width: ${(props) => props.theme.mobile}px) {
& > div {
Expand Down
2 changes: 1 addition & 1 deletion lib/ReactViews/Map/MenuBar/menu-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
z-index: 108;
top: variables.$map-button-top;
left: variables.$work-bench-width;
right: variables.$padding;
right: variables.$padding * 2;

// todo: find some non-layout-change animation technique for
// this flex-menu-bar-workbench problem
Expand Down
1 change: 1 addition & 0 deletions lib/ReactViews/Notification/NotificationWindow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ const NotificationWindow = createReactClass({
height: defined(this.props.height) ? this.props.height : "auto",
width: defined(this.props.width) ? this.props.width : "500px"
};
const isStory = type === "story";

return (
<div className={classNames(Styles.wrapper, `${type}`)}>
Expand Down
15 changes: 10 additions & 5 deletions lib/ReactViews/StandardUserInterface/TrainerBar/TrainerBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@ import CloseButton from "../../Generic/CloseButton";

const TrainerBarWrapper = styled(Box)<{ isMapFullScreen: boolean }>`
top: 0;
left: ${(p) => (p.isMapFullScreen ? 0 : Number(p.theme.workbenchWidth))}px;
left: ${(p) =>
p.isMapFullScreen
? 0
: Number(p.theme.workbenchWidth) + Number(p.theme.workbenchMargin) * 2}px;
z-index: ${(p) => Number(p.theme.frontComponentZIndex) + 100};
`;

Expand Down Expand Up @@ -205,7 +208,7 @@ class StepAccordionRaw extends React.Component<
// the relative width in its clone
padding-right: 60px;
`}
backgroundColor={theme.textBlack}
backgroundColor={theme.darkMid}
ref={(component: any) => (this.refToMeasure = component)}
>
{renderStep(
Expand Down Expand Up @@ -265,7 +268,7 @@ class StepAccordionRaw extends React.Component<
<BoxTrainerExpandedSteps
column
position="absolute"
backgroundColor={theme.textBlack}
backgroundColor={theme.darkMid}
fullWidth
paddedRatio={4}
overflowY={"auto"}
Expand Down Expand Up @@ -346,7 +349,9 @@ export const TrainerBar = observer((props: TrainerBarProps) => {
styledWidth={
isMapFullScreen
? "100%"
: `calc(100% - ${Number(theme.workbenchWidth)}px)`
: `calc(100% - ${Number(
Number(theme.workbenchWidth) + Number(theme.workbenchMargin) * 2
)}px)`
}
isMapFullScreen={isMapFullScreen}
onClick={() => viewState.setTopElement("TrainerBar")}
Expand All @@ -356,7 +361,7 @@ export const TrainerBar = observer((props: TrainerBarProps) => {
fullHeight
centered
justifySpaceBetween
backgroundColor={theme.textBlack}
backgroundColor={theme.darkMid}
>
{/* Trainer Items Dropdown */}
<Box css={"min-height: 64px;"}>
Expand Down
2 changes: 1 addition & 1 deletion lib/Sass/common/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ $font-weight-normal: 400;
$font-weight-light: 100;

$map-button-color: #9ca1aa;
$map-button-top: 18px;
$map-button-top: 21px;
$trainer-height: 64px;
$map-button-border-radius: 4px;
$work-bench-width: 350px;
Expand Down

0 comments on commit 47ebc4c

Please sign in to comment.