mirror of https://github.com/Chocobozzz/PeerTube
Fix feed button
parent
ce3d17388d
commit
d3ae2e9c80
|
@ -1,12 +1,12 @@
|
|||
<button class="feed border-0 p-0" *ngIf="syndicationItems && syndicationItems.length !== 0">
|
||||
<my-global-icon
|
||||
role="button" aria-label="Open syndication dropdown" i18n-aria-label
|
||||
*ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom left auto"
|
||||
class="icon-syndication" iconName="syndication"
|
||||
>
|
||||
</my-global-icon>
|
||||
<button
|
||||
*ngIf="syndicationItems && syndicationItems.length !== 0"
|
||||
[ngbPopover]="feedsList" [autoClose]="true" placement="bottom left auto"
|
||||
class="feed border-0 p-0"
|
||||
title="Open syndication dropdown" i18n-title
|
||||
>
|
||||
<my-global-icon iconName="syndication"></my-global-icon>
|
||||
|
||||
<ng-template #feedsList>
|
||||
<a *ngFor="let item of syndicationItems" [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a>
|
||||
<a *ngFor="let item of syndicationItems" class="feed-link" [href]="item.url" target="_blank" rel="noopener noreferrer">{{ item.label }}</a>
|
||||
</ng-template>
|
||||
</button>
|
||||
|
|
|
@ -4,15 +4,15 @@
|
|||
.feed {
|
||||
width: 100%;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
a {
|
||||
color: pvar(--mainForegroundColor);
|
||||
display: block;
|
||||
min-width: 100px;
|
||||
.feed-link {
|
||||
color: pvar(--mainForegroundColor);
|
||||
display: block;
|
||||
min-width: 100px;
|
||||
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
&:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue