align feed icons to the right for video listings
This commit is contained in:
parent
2d011d94aa
commit
2b587cad93
|
@ -7,13 +7,15 @@ my-small-loader ::ng-deep .root {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
span[class$=-button] {
|
||||||
|
> span {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.action-button {
|
.action-button {
|
||||||
@include peertube-button-link;
|
@include peertube-button-link;
|
||||||
@include button-with-icon(21px, 0, -1px);
|
@include button-with-icon(21px, 0, -1px);
|
||||||
|
|
||||||
> span:nth-child(2) {
|
|
||||||
margin-left: 5px;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.orange-button {
|
.orange-button {
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
<div class="video-feed"
|
<div class="video-feed">
|
||||||
[ngbTooltip]="'Feeds available'"
|
|
||||||
placement="right auto"
|
|
||||||
container="body"
|
|
||||||
>
|
|
||||||
<my-global-icon
|
<my-global-icon
|
||||||
*ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="bottom"
|
*ngIf="syndicationItems.length !== 0" [ngbPopover]="feedsList" [autoClose]="true" placement="left auto"
|
||||||
class="icon-syndication" role="button" iconName="syndication"
|
class="icon-syndication" role="button" iconName="syndication"
|
||||||
>
|
>
|
||||||
</my-global-icon>
|
</my-global-icon>
|
||||||
|
|
|
@ -9,19 +9,23 @@
|
||||||
<div class="action-block">
|
<div class="action-block">
|
||||||
<my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed>
|
<my-feed *ngIf="titlePage" [syndicationItems]="syndicationItems"></my-feed>
|
||||||
<a [routerLink]="action.routerLink" routerLinkActive="active" *ngFor="let action of actions">
|
<a [routerLink]="action.routerLink" routerLinkActive="active" *ngFor="let action of actions">
|
||||||
<button class="btn">
|
<my-button [icon]="action.iconName" [label]="action.label"></my-button>
|
||||||
<my-global-icon [iconName]="action.iconName" aria-hidden="true"></my-global-icon>
|
|
||||||
<span>{{ action.label }}</span>
|
|
||||||
</button>
|
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="moderation-block" *ngIf="displayModerationBlock">
|
<div class="moderation-block" *ngIf="displayModerationBlock">
|
||||||
<my-peertube-checkbox
|
<div class="c-hand" ngbDropdown container="body" placement="bottom-right auto">
|
||||||
(change)="toggleModerationDisplay()"
|
<my-global-icon iconName="cog" ngbDropdownToggle></my-global-icon>
|
||||||
inputName="display-unlisted-private" i18n-labelText labelText="Display unlisted and private videos"
|
|
||||||
>
|
<div role="menu" class="dropdown-menu" ngbDropdownMenu>
|
||||||
</my-peertube-checkbox>
|
<div class="dropdown-item">
|
||||||
|
<my-peertube-checkbox
|
||||||
|
(change)="toggleModerationDisplay()"
|
||||||
|
inputName="display-unlisted-private" i18n-labelText labelText="Display unlisted and private videos"
|
||||||
|
></my-peertube-checkbox>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -3,32 +3,39 @@
|
||||||
@import '_mixins';
|
@import '_mixins';
|
||||||
@import '_miniature';
|
@import '_miniature';
|
||||||
|
|
||||||
|
$iconSize: 16px;
|
||||||
|
|
||||||
.videos-header {
|
.videos-header {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: baseline;
|
align-items: center;
|
||||||
|
|
||||||
.title-page.title-page-single {
|
.title-page.title-page-single {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-grow: 1;
|
||||||
my-feed {
|
|
||||||
display: inline-block;
|
|
||||||
top: 1px;
|
|
||||||
width: max-content;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-block {
|
.action-block {
|
||||||
|
::ng-deep my-feed {
|
||||||
|
my-global-icon {
|
||||||
|
width: calc(#{$iconSize} - 2px);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
a button {
|
a button {
|
||||||
@include peertube-button;
|
@include peertube-button;
|
||||||
@include grey-button;
|
@include grey-button;
|
||||||
@include button-with-icon(18px, 3px, -1px);
|
@include button-with-icon($iconSize, 3px, -1px);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.moderation-block {
|
.moderation-block {
|
||||||
|
div {
|
||||||
|
@include button-with-icon($iconSize, 3px, -1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
margin-left: .2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-grow: 1;
|
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue