Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/plugins/FileService/src/SNSAdaptor/MainDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const FileServiceDialog: React.FC<Props> = (props) => {
open={props.open}
title={t.__display_name()}
onClose={onDecline}>
<DialogContent style={{ minWidth: 515 }}>
<DialogContent>
<Exchange onUploading={setUploading} onInsert={setSelectedFileInfo}>
<Entry />
</Exchange>
Expand Down
1 change: 0 additions & 1 deletion packages/plugins/FileService/src/SNSAdaptor/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const useStyles = makeStyles()((theme) => ({
root: {
display: 'flex',
alignItems: 'center',
width: 345,
border: `1px solid ${theme.palette.divider}`,
boxSizing: 'border-box',
borderRadius: 12,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const useStyles = makeStyles()((theme) => ({
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
maxWidth: 400,
},
}))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const useStyles = makeStyles()({
alignItems: 'center',
flexDirection: 'column',
justifyContent: 'center',
width: 400,
},
meta: {
display: 'flex',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ const useStyles = makeStyles()((theme) => ({
container: {
display: 'flex',
flexDirection: 'column',
height: 260,
},
upload: {
flex: 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const useStyles = makeStyles()((theme) => ({
padding: 12,
overflow: 'hidden',
userSelect: 'none',
height: 200,
},
here: {
fontSize: 14,
fontSize: 12,
lineHeight: 2.5,
color: theme.palette.grey[100],
userSelect: 'none',
Expand Down Expand Up @@ -60,8 +61,6 @@ const useStyles = makeStyles()((theme) => ({
zIndex: 1,
},
uploader: {
position: 'absolute',
top: 38,
userSelect: 'none',
cursor: 'pointer',
zIndex: 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const useStyles = makeStyles()({
height: 250,
flexDirection: 'column',
justifyContent: 'space-between',
flexWrap: 'nowrap',
alignItems: 'center',
userSelect: 'none',
paddingTop: 18,
Expand Down Expand Up @@ -73,7 +74,7 @@ export const Uploaded: React.FC = () => {
<Grid item onClick={onPreview}>
<File width={96} height={120} />
</Grid>
<Grid item>
<Grid item sx={{ width: '100%' }}>
<FileName name={state.name} />
<Typography component="section" className={classes.meta}>
<p className={classes.info}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ const useStyles = makeStyles()({
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap',
width: 400,
},
})

Expand Down Expand Up @@ -119,7 +118,7 @@ export const Uploading: React.FC = () => {
<Grid item>
<File width={96} height={120} />
</Grid>
<Grid item>
<Grid item sx={{ width: '100%' }}>
<FileName name={state.name} />
<ProgressBar preparing={preparing} fileSize={state.size} sendSize={sendSize} startedAt={startedAt} />
</Grid>
Expand Down