Skip to content

Commit 85b8041

Browse files
authored
update move modal (codesandbox#3742)
* update modal * remove hack
1 parent 217cadc commit 85b8041

File tree

3 files changed

+26
-5
lines changed
  • packages/app/src/app/pages

3 files changed

+26
-5
lines changed

packages/app/src/app/pages/Sandbox/Editor/Workspace/items/Deployment/Zeit/Deploys/Deploys.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
22
import React, { FunctionComponent } from 'react';
3-
43
import { useOvermind } from 'app/overmind';
54

65
import {
@@ -39,7 +38,6 @@ export const Deploys: FunctionComponent = () => {
3938

4039
<span>{`(${formatDistanceToNow(deploy.created)} ago)`}</span>
4140
</Name>
42-
4341
<State state={deploy.state}>
4442
{deploy.state.toString().toLowerCase()}
4543
</State>

packages/app/src/app/pages/Sandbox/Editor/Workspace/screens/Deployment/Zeit.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import {
1111
List,
1212
} from '@codesandbox/components';
1313
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
14+
1415
import { useOvermind } from 'app/overmind';
1516
import { ZeitIcon, VisitIcon, TrashIcon } from './icons';
1617
import { State } from './elements';

packages/app/src/app/pages/common/Modals/MoveSandboxFolderModal/index.tsx

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,13 +55,24 @@ export const MoveSandboxFolderModal: FunctionComponent = () => {
5555
}, [id, loading, modalClosed, path, refetchSandboxInfo, teamId]);
5656

5757
return (
58-
<Alert title="Move to Folder">
58+
<Alert
59+
title="Move to Folder"
60+
css={css({
61+
paddingRight: 0,
62+
paddingLeft: 0,
63+
'> span': {
64+
paddingLeft: 4,
65+
paddingBottom: 4,
66+
borderBottom: '1px solid',
67+
borderColor: 'sideBar.border',
68+
},
69+
})}
70+
>
5971
<Element
6072
css={css({
6173
maxHeight: 400,
6274
overflow: 'auto',
6375
})}
64-
marginTop={4}
6576
>
6677
<DirectoryPicker
6778
currentPath={path}
@@ -72,7 +83,18 @@ export const MoveSandboxFolderModal: FunctionComponent = () => {
7283

7384
{error}
7485

75-
<Stack marginTop={4} align="flex-end" gap={2} justify="flex-end">
86+
<Stack
87+
marginTop={4}
88+
align="flex-end"
89+
gap={2}
90+
justify="flex-end"
91+
css={css({
92+
paddingTop: 4,
93+
paddingRight: 4,
94+
borderTop: '1px solid',
95+
borderColor: 'sideBar.border',
96+
})}
97+
>
7698
<Button
7799
css={css({ width: 'auto' })}
78100
variant="secondary"

0 commit comments

Comments
 (0)