aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+about/about-follows
diff options
context:
space:
mode:
authorWicklow <wicklow@framasoft.org>2023-02-16 12:31:45 +0100
committerChocobozzz <chocobozzz@cpy.re>2023-02-20 13:52:22 +0100
commit35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe (patch)
tree9417b7a5854cc0084c557929c64dd4cfb21e2904 /client/src/app/+about/about-follows
parent27f84cc3371aaf519c1bb5c0cca9e728a9dd3967 (diff)
downloadPeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.tar.gz
PeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.tar.zst
PeerTube-35fe58c2f8f4a1ac0ede16b1a7d8763c25b8febe.zip
Refactoring style for about component
Diffstat (limited to 'client/src/app/+about/about-follows')
-rw-r--r--client/src/app/+about/about-follows/about-follows.component.html8
-rw-r--r--client/src/app/+about/about-follows/about-follows.component.scss15
2 files changed, 5 insertions, 18 deletions
diff --git a/client/src/app/+about/about-follows/about-follows.component.html b/client/src/app/+about/about-follows/about-follows.component.html
index 6516b595d..84626809d 100644
--- a/client/src/app/+about/about-follows/about-follows.component.html
+++ b/client/src/app/+about/about-follows/about-follows.component.html
@@ -2,7 +2,7 @@
2 <h1 class="visually-hidden" i18n>Follows</h1> 2 <h1 class="visually-hidden" i18n>Follows</h1>
3 3
4 <div class="col-xl-6 col-md-12"> 4 <div class="col-xl-6 col-md-12">
5 <h2 i18n class="subtitle">Followers of {{ instanceName }} ({{ followersPagination.totalItems }})</h2> 5 <h2 i18n class="pt-fs-5-5 mb-4 fw-semibold">Followers of {{ instanceName }} ({{ followersPagination.totalItems }})</h2>
6 6
7 <div i18n class="no-results" *ngIf="followersPagination.totalItems === 0">{{ instanceName }} does not have followers.</div> 7 <div i18n class="no-results" *ngIf="followersPagination.totalItems === 0">{{ instanceName }} does not have followers.</div>
8 8
@@ -10,11 +10,11 @@
10 {{ follower }} 10 {{ follower }}
11 </a> 11 </a>
12 12
13 <button i18n class="show-more" *ngIf="!loadedAllFollowers && canLoadMoreFollowers()" (click)="loadAllFollowers()">Show full list</button> 13 <button i18n class="peertube-button-link grey-button mt-1" *ngIf="!loadedAllFollowers && canLoadMoreFollowers()" (click)="loadAllFollowers()">Show full list</button>
14 </div> 14 </div>
15 15
16 <div class="col-xl-6 col-md-12"> 16 <div class="col-xl-6 col-md-12">
17 <h2 i18n class="subtitle">Subscriptions of {{ instanceName }} ({{ followingsPagination.totalItems }})</h2> 17 <h2 i18n class="pt-fs-5-5 mb-4 fw-semibold">Subscriptions of {{ instanceName }} ({{ followingsPagination.totalItems }})</h2>
18 18
19 <div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">{{ instanceName }} does not have subscriptions.</div> 19 <div i18n class="no-results" *ngIf="followingsPagination.totalItems === 0">{{ instanceName }} does not have subscriptions.</div>
20 20
@@ -22,7 +22,7 @@
22 {{ following }} 22 {{ following }}
23 </a> 23 </a>
24 24
25 <button i18n class="show-more" *ngIf="!loadedAllFollowings && canLoadMoreFollowings()" (click)="loadAllFollowings()">Show full list</button> 25 <button i18n class="peertube-button-link grey-button mt-1" *ngIf="!loadedAllFollowings && canLoadMoreFollowings()" (click)="loadAllFollowings()">Show full list</button>
26 </div> 26 </div>
27 27
28</div> 28</div>
diff --git a/client/src/app/+about/about-follows/about-follows.component.scss b/client/src/app/+about/about-follows/about-follows.component.scss
index 057d04ced..e80e9d96e 100644
--- a/client/src/app/+about/about-follows/about-follows.component.scss
+++ b/client/src/app/+about/about-follows/about-follows.component.scss
@@ -1,12 +1,6 @@
1@use '_variables' as *; 1@use '_variables' as *;
2@use '_mixins' as *; 2@use '_mixins' as *;
3 3
4.subtitle {
5 font-size: 18px;
6 font-weight: $font-semibold;
7 margin-bottom: 20px;
8}
9
10a { 4a {
11 display: block; 5 display: block;
12 width: fit-content; 6 width: fit-content;
@@ -16,11 +10,4 @@ a {
16.no-results { 10.no-results {
17 justify-content: flex-start; 11 justify-content: flex-start;
18 align-items: flex-start; 12 align-items: flex-start;
19} 13} \ No newline at end of file
20
21.show-more {
22 @include peertube-button-link;
23 @include grey-button;
24
25 margin-top: 1%;
26}