Skip to content

Commit

Permalink
fix(web): 修复移动端无法正确关闭按钮StandaloneWindow的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Nov 6, 2020
1 parent 2d1814c commit 844875a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/web/components/StandaloneWindow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,15 @@ const WindowContainer = styled.div`
> .window-container-title {
display: flex;
justify-content: space-between;
padding: 10px 6px;
font-size: 18px;
border-bottom: ${({ theme }) => theme.border.standard};
cursor: move;
> .window-container-title-text {
flex: 1;
}
> .window-container-title-action {
display: flex;
Expand All @@ -79,7 +82,7 @@ const Window: React.FC<WindowContainerProps> = React.memo((props) => {
return (
<WindowContainer>
<div className="window-container-title">
<span>{props.title}</span>
<span className="window-container-title-text">{props.title}</span>
<div className="window-container-title-action">
{/* <div title="最小化" onClick={props.onMinimize}>
<i className="iconfont">&#xe657;</i>
Expand Down Expand Up @@ -119,7 +122,7 @@ const StandaloneWindow: React.FC<StandaloneWindowConfig> & {
return (
<Container>
<Rnd
dragHandleClassName="window-container-title"
dragHandleClassName="window-container-title-text"
{...props.options}
default={defaultPos}
>
Expand Down

0 comments on commit 844875a

Please sign in to comment.