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

Feat new design #158

Merged
merged 18 commits into from
Aug 31, 2020
Prev Previous commit
Next Next commit
fix:
  • Loading branch information
h13i32maru committed Aug 30, 2020
commit be24a3797b41b0ce8dc265581653be4916384e6e
6 changes: 4 additions & 2 deletions src/Renderer/Library/View/TrafficLightsSafe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class TrafficLightsSafe extends React.Component<Props, State> {
onDoubleClick={() => this.handleMaximize()}
style={{display: this.props.hideDragBar ? 'none' : 'block'}}
/>
<Inner style={{display}}>
<Inner style={{display}} onDoubleClick={() => AppIPC.toggleMaximizeWindow()}>
{this.props.children}
</Inner>
</Root>
Expand All @@ -65,7 +65,9 @@ const TrafficLightSize = {
const Root = styled(View)`
`;

const Inner = styled(View)`
const Inner = styled.div`
display: flex;
flex-direction: column;
min-height: ${TrafficLightSize.height}px;
margin-left: ${TrafficLightSize.width}px;
-webkit-app-region: drag;
Expand Down