-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix dev build and filePanel overflow
- Loading branch information
Showing
11 changed files
with
139 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/p2p-chat/src/components/Chatting/FilePanel/FilePanel.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
.filePanel { | ||
padding: 5px; | ||
display: flex; | ||
height: 8.5em; | ||
height: 120px; | ||
overflow-x: auto; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
packages/p2p-chat/src/components/Chatting/FilePanel/FileReceive.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
.filename { | ||
font-weight: 700; | ||
} | ||
|
||
.card > div { | ||
white-space: nowrap; | ||
word-break: break-all; | ||
text-overflow: clip; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
font-weight: 700; | ||
} |
16 changes: 6 additions & 10 deletions
16
packages/p2p-chat/src/components/Common/CustomCard/index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
import React from 'react' | ||
import { Card } from 'antd' | ||
|
||
export default props => ( | ||
<Card | ||
bodyStyle={{ | ||
width: '150px', | ||
padding: '8px 12px', | ||
overflow: 'hidden', | ||
}} | ||
{...props} | ||
/> | ||
) | ||
const style = { | ||
width: '150px', | ||
padding: '8px 10px', | ||
overflow: 'hidden', | ||
} | ||
export default props => <Card bodyStyle={style} {...props} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
module.exports = env => { | ||
const mode = env.production ? 'production' : 'developement' | ||
module.exports = (env = {}) => { | ||
const mode = env.production ? 'production' : 'development' | ||
process.env.NODE_ENV = mode | ||
|
||
return [require('./config/renderer.config'), require('./config/main.config')].map(x => { | ||
if (typeof x === 'function') { | ||
x = x(env) // eslint-disable-line | ||
} | ||
x.mode = mode // eslint-disable-line | ||
return x | ||
}) | ||
} |
Oops, something went wrong.