Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
martinbedouret committed Aug 13, 2021
2 parents f00fc11 + 559ca92 commit e41b964
Showing 2 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/components/Settings/Speech/Speech.component.js
Original file line number Diff line number Diff line change
@@ -156,8 +156,8 @@ const Speech = ({
onClick={() => onMenuItemClick(voice, index)}
>
<div className="Speech__VoiceMenuItemText">
{getVoiceLabel(voice)}
{voice && voice.voiceSource === 'cloud' && (
<div className="Speech__VoiceLabel">{getVoiceLabel(voice)}</div>
{voice.voiceSource === 'cloud' && (
<Chip label="online" size="small" color="secondary" />
)}
</div>
20 changes: 18 additions & 2 deletions src/components/Settings/Speech/Speech.css
Original file line number Diff line number Diff line change
@@ -5,8 +5,24 @@
.Speech__VoiceMenuItemText {
display: flex;
flex-direction: row;
align-items: center;
min-width: 100%;
}

.Speech__VoiceMenuItemText .MuiChip-root {
margin-left: 8px;
.Speech__VoiceLabel:hover {
overflow: visible;
white-space: normal;
height: auto;
}

.Speech__VoiceLabel {
overflow: hidden;
text-overflow: ellipsis;
margin-right: 20px;
white-space: nowrap;
max-width: 80%;
}

.MuiChip-root {
margin-left: auto;
}

0 comments on commit e41b964

Please sign in to comment.