clean up file page and reactions
This commit is contained in:
parent
34c0f8cd04
commit
2d008899b6
3 changed files with 20 additions and 9 deletions
|
@ -302,7 +302,7 @@ function CommentList(props: Props) {
|
|||
{readyToDisplayComments && topLevelComments && getCommentElems(topLevelComments)}
|
||||
</ul>
|
||||
|
||||
{!hasDefaultExpansion && (
|
||||
{!hasDefaultExpansion && topLevelComments && Boolean(topLevelComments.length) && (
|
||||
<div className="card__bottom-actions--comments">
|
||||
{(!expandedComments || moreBelow) && (
|
||||
<Button
|
||||
|
|
|
@ -76,7 +76,10 @@ function FileReactions(props: Props) {
|
|||
title={__('I like this')}
|
||||
requiresAuth={IS_WEB}
|
||||
authSrc="filereaction_like"
|
||||
className={classnames('button--file-action', { 'button--fire': myReaction === REACTION_TYPES.LIKE })}
|
||||
className={classnames('button--file-action', {
|
||||
'button--fire': SIMPLE_SITE && myReaction === REACTION_TYPES.LIKE,
|
||||
'button--file-action-active': !SIMPLE_SITE && myReaction === REACTION_TYPES.LIKE,
|
||||
})}
|
||||
label={
|
||||
<>
|
||||
{myReaction === REACTION_TYPES.LIKE && SIMPLE_SITE && (
|
||||
|
@ -101,7 +104,10 @@ function FileReactions(props: Props) {
|
|||
requiresAuth={IS_WEB}
|
||||
authSrc={'filereaction_dislike'}
|
||||
title={__('I dislike this')}
|
||||
className={classnames('button--file-action', { 'button--slime': myReaction === REACTION_TYPES.DISLIKE })}
|
||||
className={classnames('button--file-action', {
|
||||
'button--slime': SIMPLE_SITE && myReaction === REACTION_TYPES.DISLIKE,
|
||||
'button--file-action-active': !SIMPLE_SITE && myReaction === REACTION_TYPES.DISLIKE,
|
||||
})}
|
||||
label={
|
||||
<>
|
||||
{myReaction === REACTION_TYPES.DISLIKE && SIMPLE_SITE && (
|
||||
|
|
|
@ -176,12 +176,12 @@
|
|||
transition: background 0.2s;
|
||||
}
|
||||
|
||||
.vjs-button--autoplay-next.vjs-button[aria-checked=true] {
|
||||
.vjs-button--autoplay-next.vjs-button[aria-checked='true'] {
|
||||
background: var(--color-primary);
|
||||
}
|
||||
|
||||
.vjs-button--autoplay-next.vjs-button::after {
|
||||
content: "";
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
@ -193,7 +193,7 @@
|
|||
transition: transform 0.2s;
|
||||
}
|
||||
|
||||
.vjs-button--autoplay-next.vjs-button[aria-checked=true]::after {
|
||||
.vjs-button--autoplay-next.vjs-button[aria-checked='true']::after {
|
||||
transform: translateX(12px);
|
||||
}
|
||||
|
||||
|
@ -282,9 +282,7 @@
|
|||
padding: 0 var(--spacing-xxs);
|
||||
|
||||
.icon {
|
||||
&:not(.color-override) {
|
||||
stroke: #777;
|
||||
}
|
||||
stroke: var(--color-text-subtitle);
|
||||
}
|
||||
|
||||
.button__label {
|
||||
|
@ -305,6 +303,13 @@
|
|||
}
|
||||
}
|
||||
|
||||
.button--file-action-active {
|
||||
.icon {
|
||||
fill: var(--color-primary-alt);
|
||||
stroke: var(--color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
.button--fire {
|
||||
color: var(--color-fire);
|
||||
position: relative;
|
||||
|
|
Loading…
Reference in a new issue