Poll: Fix styles for poll avatar list (#4734)
This commit is contained in:
parent
8faa652eb6
commit
e4c21c5b56
@ -110,26 +110,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.poll-recent-voters {
|
.poll-recent-voters {
|
||||||
display: inline-flex;
|
|
||||||
align-items: center;
|
|
||||||
vertical-align: text-bottom;
|
|
||||||
margin-left: 0.875rem;
|
margin-left: 0.875rem;
|
||||||
margin-right: 0.5rem;
|
|
||||||
margin-top: -2px;
|
|
||||||
|
|
||||||
.Avatar {
|
|
||||||
border: 0.0625rem solid var(--color-background);
|
|
||||||
margin-right: 0;
|
|
||||||
box-sizing: content-box;
|
|
||||||
|
|
||||||
.Message.own & {
|
|
||||||
border: 0.0625rem solid var(--secondary-color);
|
|
||||||
}
|
|
||||||
|
|
||||||
&:not(:first-child) {
|
|
||||||
margin-left: -3px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.poll-countdown {
|
.poll-countdown {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import { renderTextWithEntities } from '../../common/helpers/renderTextWithEntit
|
|||||||
import useLastCallback from '../../../hooks/useLastCallback';
|
import useLastCallback from '../../../hooks/useLastCallback';
|
||||||
import useOldLang from '../../../hooks/useOldLang';
|
import useOldLang from '../../../hooks/useOldLang';
|
||||||
|
|
||||||
import Avatar from '../../common/Avatar';
|
import AvatarList from '../../common/AvatarList';
|
||||||
import Button from '../../ui/Button';
|
import Button from '../../ui/Button';
|
||||||
import CheckboxGroup from '../../ui/CheckboxGroup';
|
import CheckboxGroup from '../../ui/CheckboxGroup';
|
||||||
import Notification from '../../ui/Notification';
|
import Notification from '../../ui/Notification';
|
||||||
@ -222,13 +222,10 @@ const Poll: FC<OwnProps & StateProps> = ({
|
|||||||
return (
|
return (
|
||||||
recentVoters.length > 0 && (
|
recentVoters.length > 0 && (
|
||||||
<div className="poll-recent-voters">
|
<div className="poll-recent-voters">
|
||||||
{recentVoters.map((peer) => (
|
<AvatarList
|
||||||
<Avatar
|
size="micro"
|
||||||
key={peer.id}
|
peers={recentVoters}
|
||||||
size="micro"
|
/>
|
||||||
peer={peer}
|
|
||||||
/>
|
|
||||||
))}
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user