Skip to content

Commit 04a3d43

Browse files
committed
fix(App): Fix share screen selection styles
1 parent 58deb32 commit 04a3d43

2 files changed

Lines changed: 18 additions & 12 deletions

File tree

src/features/desktopCapturer/Component.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ const styles = theme => ({
4646
flexWrap: 'wrap',
4747
marginTop: 20,
4848
overflow: 'scroll',
49+
gap: '5%',
4950
},
5051
cta: {
5152
width: '100%',
5253
marginTop: 40,
54+
whiteSpace: 'nowrap',
5355
},
5456
cancelCta: {
5557
marginTop: 15,

src/features/desktopCapturer/sourceItem.js

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
11
import classNames from 'classnames';
22
import { observer } from 'mobx-react';
33
import PropTypes from 'prop-types';
4-
import React, { Component } from 'react';
4+
import { Component } from 'react';
55
import injectSheet from 'react-jss';
66

77
const styles = theme => ({
8-
modal: {
9-
width: '80%',
10-
maxWidth: 600,
11-
textAlign: 'center',
12-
},
13-
sourcesContainer: {
14-
display: 'flex',
15-
flexWrap: 'wrap',
16-
},
178
source: {
18-
width: '33%',
9+
width: '30%',
10+
flexDirection: 'column',
11+
display: 'flex',
12+
justifyContent: 'center',
13+
alignItems: 'center',
1914
color: theme.colorText,
2015
marginBottom: 40,
2116

2217
'& $thumb': {
2318
border: [3, 'solid', 'transparent'],
2419
borderRadius: theme.borderRadius,
2520
transition: 'border 250ms',
21+
boxShadow: [0, 0, 5, 'rgba(0, 0, 0, 0.1)'],
22+
width: '100%',
2623
},
2724

2825
'&:hover, &$active': {
@@ -50,6 +47,13 @@ const styles = theme => ({
5047
width: 30,
5148
height: 30,
5249
},
50+
windowName: {
51+
width: '100%',
52+
whiteSpace: 'nowrap',
53+
overflow: 'hidden',
54+
textOverflow: 'ellipsis',
55+
marginTop: 10,
56+
},
5357
});
5458

5559
export default @injectSheet(styles) @observer class SourceItem extends Component {
@@ -86,7 +90,7 @@ export default @injectSheet(styles) @observer class SourceItem extends Component
8690
<img src={thumbnail} alt="" className={classes.thumb} />
8791
{appIcon && <img src={appIcon} alt="" className={classes.appIcon} />}
8892
</div>
89-
<p>
93+
<p className={classes.windowName}>
9094
{name}
9195
</p>
9296
</button>

0 commit comments

Comments
 (0)