Refactor feed component
This commit is contained in:
parent
f650072985
commit
205e4f56f3
|
@ -1,17 +1,9 @@
|
||||||
@import 'mixins';
|
@import 'mixins';
|
||||||
|
|
||||||
h1 {
|
|
||||||
my-feed {
|
my-feed {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
width: 15px;
|
||||||
::ng-deep {
|
|
||||||
my-global-icon {
|
|
||||||
width: 15px !important;
|
|
||||||
top: 0 !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
my-global-icon {
|
my-global-icon {
|
||||||
|
|
|
@ -27,7 +27,11 @@
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: ease-in .2s opacity;
|
transition: ease-in .2s opacity;
|
||||||
|
width: 12px;
|
||||||
|
position: relative;
|
||||||
|
top: -3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:hover my-feed {
|
&:hover my-feed {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
|
@ -206,11 +206,6 @@ $video-info-margin-left: 44px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
my-feed {
|
|
||||||
margin-left: 5px;
|
|
||||||
margin-top: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.video-actions-rates {
|
.video-actions-rates {
|
||||||
margin: 0 0 10px 0;
|
margin: 0 0 10px 0;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
|
|
|
@ -2,19 +2,17 @@
|
||||||
@import '_mixins';
|
@import '_mixins';
|
||||||
|
|
||||||
.feed {
|
.feed {
|
||||||
width: min-content;
|
width: 100%;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
color: black;
|
color: black;
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
my-global-icon {
|
my-global-icon {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 12px;
|
width: 100%;
|
||||||
position: relative;
|
|
||||||
top: -2px;
|
|
||||||
|
|
||||||
@include apply-svg-color(pvar(--mainForegroundColor))
|
@include apply-svg-color(pvar(--mainForegroundColor))
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
<div class="action-block">
|
<div class="action-block">
|
||||||
<my-feed *ngIf="syndicationItems" [syndicationItems]="syndicationItems"></my-feed>
|
<my-feed *ngIf="syndicationItems" [syndicationItems]="syndicationItems"></my-feed>
|
||||||
|
|
||||||
<ng-container *ngFor="let action of actions">
|
<ng-container *ngFor="let action of actions">
|
||||||
<a *ngIf="action.routerLink" class="ml-2" [routerLink]="action.routerLink" routerLinkActive="active">
|
<a *ngIf="action.routerLink" class="ml-2" [routerLink]="action.routerLink" routerLinkActive="active">
|
||||||
<ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container>
|
<ng-container *ngTemplateOutlet="actionContent; context:{ $implicit: action }"></ng-container>
|
||||||
|
|
|
@ -15,40 +15,22 @@ $iconSize: 16px;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.action-block {
|
my-feed {
|
||||||
::ng-deep my-feed {
|
display: inline-block;
|
||||||
my-global-icon {
|
|
||||||
width: calc(#{$iconSize} - 2px);
|
width: calc(#{$iconSize} - 2px);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
a button {
|
|
||||||
@include peertube-button;
|
|
||||||
@include grey-button;
|
|
||||||
@include button-with-icon($iconSize, 3px, -1px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.moderation-block {
|
.moderation-block {
|
||||||
|
|
||||||
my-global-icon {
|
my-global-icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: $iconSize;
|
width: $iconSize;
|
||||||
top: -2px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
margin-left: .4rem;
|
margin-left: .4rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.dropdown-item {
|
|
||||||
padding: 0;
|
|
||||||
|
|
||||||
::ng-deep my-peertube-checkbox label {
|
|
||||||
padding: 3px 15px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -914,7 +914,7 @@
|
||||||
padding-bottom: 15px;
|
padding-bottom: 15px;
|
||||||
margin-bottom: $sub-menu-margin-bottom;
|
margin-bottom: $sub-menu-margin-bottom;
|
||||||
|
|
||||||
my-global-icon {
|
> my-global-icon {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
width: 24px;
|
width: 24px;
|
||||||
|
|
Loading…
Reference in New Issue