fix(speaker-stats): labels spearator line fixed and remove footer space
This commit is contained in:
parent
a2155aad7f
commit
85581266e4
|
@ -20,11 +20,17 @@ import SpeakerStatsSearch from './SpeakerStatsSearch';
|
||||||
|
|
||||||
const useStyles = makeStyles(theme => {
|
const useStyles = makeStyles(theme => {
|
||||||
return {
|
return {
|
||||||
|
footer: {
|
||||||
|
display: 'none !important'
|
||||||
|
},
|
||||||
|
labelsContainer: {
|
||||||
|
position: 'relative'
|
||||||
|
},
|
||||||
separator: {
|
separator: {
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
width: '100%',
|
width: 'calc(100% + 48px)',
|
||||||
height: 1,
|
height: 1,
|
||||||
left: 0,
|
left: -24,
|
||||||
backgroundColor: theme.palette.border02
|
backgroundColor: theme.palette.border02
|
||||||
},
|
},
|
||||||
searchSwitchContainer: {
|
searchSwitchContainer: {
|
||||||
|
@ -74,6 +80,7 @@ const SpeakerStats = () => {
|
||||||
return (
|
return (
|
||||||
<Dialog
|
<Dialog
|
||||||
cancelKey = 'dialog.close'
|
cancelKey = 'dialog.close'
|
||||||
|
classes = {{ footer: classes.footer }}
|
||||||
hideCancelButton = { true }
|
hideCancelButton = { true }
|
||||||
submitDisabled = { true }
|
submitDisabled = { true }
|
||||||
titleKey = 'speakerStats.speakerStats'
|
titleKey = 'speakerStats.speakerStats'
|
||||||
|
@ -100,11 +107,11 @@ const SpeakerStats = () => {
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
{ displayLabels && (
|
{ displayLabels && (
|
||||||
<>
|
<div className = { classes.labelsContainer }>
|
||||||
<SpeakerStatsLabels
|
<SpeakerStatsLabels
|
||||||
showFacialExpressions = { showFacialExpressions ?? false } />
|
showFacialExpressions = { showFacialExpressions ?? false } />
|
||||||
<div className = { classes.separator } />
|
<div className = { classes.separator } />
|
||||||
</>
|
</div>
|
||||||
)}
|
)}
|
||||||
<SpeakerStatsList />
|
<SpeakerStatsList />
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -11,7 +11,8 @@ import SpeakerStatsItem from './SpeakerStatsItem';
|
||||||
const useStyles = makeStyles(theme => {
|
const useStyles = makeStyles(theme => {
|
||||||
return {
|
return {
|
||||||
list: {
|
list: {
|
||||||
marginTop: `${theme.spacing(3)}px`
|
marginTop: `${theme.spacing(3)}px`,
|
||||||
|
marginBottom: `${theme.spacing(3)}px`
|
||||||
},
|
},
|
||||||
item: {
|
item: {
|
||||||
height: `${theme.spacing(7)}px`,
|
height: `${theme.spacing(7)}px`,
|
||||||
|
|
Loading…
Reference in New Issue