fix repost ribbon
This commit is contained in:
parent
ee754f0085
commit
48a77d3faa
3 changed files with 25 additions and 13 deletions
|
@ -2315,5 +2315,7 @@
|
|||
"Clear Views": "Clear Views",
|
||||
"Show Video View Progress": "Show Video View Progress",
|
||||
"Display view progress on thumbnail. This setting will not hide any blockchain activity or downloads.": "Display view progress on thumbnail. This setting will not hide any blockchain activity or downloads.",
|
||||
"%anonymous%": "%anonymous%",
|
||||
"Anon --[used in <%anonymous% Reposted>]--": "Anon",
|
||||
"--end--": "--end--"
|
||||
}
|
||||
|
|
|
@ -31,17 +31,19 @@ function ClaimRepostAuthor(props: Props) {
|
|||
if (repostUrl && !repostChannelUrl) {
|
||||
return (
|
||||
<div className="claim-preview__repost-author">
|
||||
<div className="claim-preview__repost-ribbon claim-preview__repost-ribbon--anon">
|
||||
<Icon icon={ICONS.REPOST} size={10} />
|
||||
<span>
|
||||
<I18nMessage
|
||||
tokens={{
|
||||
anonymous: <strong>{__('Anonymous --[used in <%anonymous% Reposted>]--')}</strong>,
|
||||
anonymous: <strong>{__('Anon --[used in <%anonymous% Reposted>]--')}</strong>,
|
||||
}}
|
||||
>
|
||||
%anonymous% Reposted
|
||||
%anonymous%
|
||||
</I18nMessage>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
if (!repostUrl) {
|
||||
|
|
|
@ -130,9 +130,9 @@
|
|||
position: absolute;
|
||||
display: block;
|
||||
width: 225px;
|
||||
padding-top: 4px;
|
||||
padding-top: 2px;
|
||||
padding-right: 8px;
|
||||
background-color: var(--color-brand-blue);
|
||||
background-color: var(--color-gray-7);
|
||||
color: var(--color-primary-contrast);
|
||||
text-align: center;
|
||||
z-index: 1;
|
||||
|
@ -142,6 +142,14 @@
|
|||
top: 10px;
|
||||
transform: rotate(-45deg);
|
||||
|
||||
&.claim-preview__repost-ribbon--anon {
|
||||
left: -85px;
|
||||
top: 12px;
|
||||
.icon {
|
||||
margin-right: var(--spacing-xxs);
|
||||
}
|
||||
}
|
||||
|
||||
.button--uri-indicator {
|
||||
top: -3px;
|
||||
}
|
||||
|
@ -160,7 +168,7 @@
|
|||
overflow: hidden;
|
||||
|
||||
&:hover {
|
||||
color: var(--color-secondary);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue