Add max width to top bar
This commit is contained in:
@@ -255,6 +255,7 @@ export class Portal extends React.Component<PortalProps, PortalState> {
|
||||
translate={this.props.translate}
|
||||
displayType={TopBarDisplayType.Expanded}
|
||||
style={{ backgroundColor: colors.lightestGrey }}
|
||||
maxWidth={LARGE_LAYOUT_MAX_WIDTH}
|
||||
/>
|
||||
<div id="portal" style={styles.body}>
|
||||
<Switch>
|
||||
|
||||
@@ -45,6 +45,7 @@ export interface TopBarProps {
|
||||
isNightVersion?: boolean;
|
||||
onVersionSelected?: (semver: string) => void;
|
||||
sidebarHeader?: React.ReactNode;
|
||||
maxWidth?: number;
|
||||
}
|
||||
|
||||
interface TopBarState {
|
||||
@@ -213,7 +214,7 @@ export class TopBar extends React.Component<TopBarProps, TopBarState> {
|
||||
const shouldShowPortalV2Drawer = this._isViewingPortal() && utils.shouldShowPortalV2();
|
||||
return (
|
||||
<div style={{ ...styles.topBar, ...bottomBorderStyle, ...this.props.style, ...{ height } }} className="pb1">
|
||||
<div className={parentClassNames}>
|
||||
<div className={parentClassNames} style={{ maxWidth: this.props.maxWidth }}>
|
||||
<div className="col col-2 sm-pl1 md-pl2 lg-pl0" style={{ paddingTop: 15 }}>
|
||||
<Link to={`${WebsitePaths.Home}`} className="text-decoration-none">
|
||||
<img src={logoUrl} height="30" />
|
||||
|
||||
Reference in New Issue
Block a user