Audio Player: Prevent overflow on medium screens, move buttons (#1907)
This commit is contained in:
parent
b39ae6f0a1
commit
f3427db49f
@ -177,6 +177,10 @@
|
|||||||
unicode-bidi: plaintext;
|
unicode-bidi: plaintext;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.date {
|
||||||
|
flex-shrink: 0;
|
||||||
|
}
|
||||||
|
|
||||||
.duration {
|
.duration {
|
||||||
font-size: 0.875rem;
|
font-size: 0.875rem;
|
||||||
color: var(--color-text-secondary);
|
color: var(--color-text-secondary);
|
||||||
@ -201,7 +205,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.performer {
|
.performer {
|
||||||
flex-shrink: 0;
|
flex-shrink: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.duration.with-seekline {
|
.duration.with-seekline {
|
||||||
@ -304,10 +308,6 @@
|
|||||||
line-height: 1.0625rem;
|
line-height: 1.0625rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.duration {
|
|
||||||
line-height: 1rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.media-loading {
|
.media-loading {
|
||||||
top: 0.1875rem;
|
top: 0.1875rem;
|
||||||
left: 0.1875rem;
|
left: 0.1875rem;
|
||||||
|
|||||||
@ -128,6 +128,7 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-shrink: 1;
|
flex-shrink: 1;
|
||||||
|
max-width: 14rem;
|
||||||
padding: 0 0.5rem;
|
padding: 0 0.5rem;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
@ -138,12 +139,24 @@
|
|||||||
background-color: var(--color-interactive-element-hover);
|
background-color: var(--color-interactive-element-hover);
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (min-width: 1440px) and (max-width: 1500px) {
|
.right-column-shown & {
|
||||||
max-width: 14rem;
|
max-width: 10rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 600px) {
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 1440px) {
|
||||||
|
max-width: 24rem;
|
||||||
|
.right-column-shown & {
|
||||||
|
max-width: 14rem;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.AudioPlayer & .title {
|
.AudioPlayer & .title {
|
||||||
display: block;
|
display: block;
|
||||||
|
margin-top: 0.125rem;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
font-size: 0.875rem !important;
|
font-size: 0.875rem !important;
|
||||||
line-height: 1rem;
|
line-height: 1rem;
|
||||||
|
|||||||
@ -161,6 +161,11 @@ const AudioPlayer: FC<OwnProps & StateProps> = ({
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={buildClassName('AudioPlayer', className)} dir={lang.isRtl ? 'rtl' : undefined}>
|
<div className={buildClassName('AudioPlayer', className)} dir={lang.isRtl ? 'rtl' : undefined}>
|
||||||
|
<div className="AudioPlayer-content" onClick={handleClick}>
|
||||||
|
{audio ? renderAudio(audio) : renderVoice(lang('AttachAudio'), senderName)}
|
||||||
|
<RippleEffect />
|
||||||
|
</div>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
round
|
round
|
||||||
ripple={!IS_SINGLE_COLUMN_LAYOUT}
|
ripple={!IS_SINGLE_COLUMN_LAYOUT}
|
||||||
@ -198,11 +203,6 @@ const AudioPlayer: FC<OwnProps & StateProps> = ({
|
|||||||
<i className="icon-skip-next" />
|
<i className="icon-skip-next" />
|
||||||
</Button>
|
</Button>
|
||||||
|
|
||||||
<div className="AudioPlayer-content" onClick={handleClick}>
|
|
||||||
{audio ? renderAudio(audio) : renderVoice(lang('AttachAudio'), senderName)}
|
|
||||||
<RippleEffect />
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
round
|
round
|
||||||
className="player-button volume-button"
|
className="player-button volume-button"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user