Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Cleanup sub title CSS

Chocobozzz714f7aebad5d
diff --git a/client/src/app/+admin/follows/followers-list/followers-list.component.html b/client/src/app/+admin/follows/followers-list/followers-list.component.html
index 60fe381317..8bb1871dde 100644
--- a/client/src/app/+admin/follows/followers-list/followers-list.component.html
+++ b/client/src/app/+admin/follows/followers-list/followers-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Followers of your instance</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Followers of your instance</h1>
+ </div>
+</div>
<p-table
[value]="followers" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/follows/following-list/following-list.component.html b/client/src/app/+admin/follows/following-list/following-list.component.html
index 9404ba3482..ebfe34f8b8 100644
--- a/client/src/app/+admin/follows/following-list/following-list.component.html
+++ b/client/src/app/+admin/follows/following-list/following-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="following" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Subscriptions of your instance</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="following" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Subscriptions of your instance</h1>
+ </div>
+</div>
<p-table
[value]="following" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
index babcce6d31..7ded2a6f97 100644
--- a/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
+++ b/client/src/app/+admin/follows/video-redundancies-list/video-redundancies-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Videos redundancies</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Videos redundancies</h1>
+ </div>
+</div>
<div class="admin-sub-header">
<div class="select-filter-block">
diff --git a/client/src/app/+admin/moderation/abuse-list/abuse-list.component.html b/client/src/app/+admin/moderation/abuse-list/abuse-list.component.html
index a9e0931f82..6603252386 100644
--- a/client/src/app/+admin/moderation/abuse-list/abuse-list.component.html
+++ b/client/src/app/+admin/moderation/abuse-list/abuse-list.component.html
@@ -1,6 +1,8 @@
-<h1>
- <my-global-icon iconName="flag" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Reports</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="flag" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Reports</h1>
+ </div>
+</div>
<my-abuse-list-table viewType="admin"></my-abuse-list-table>
diff --git a/client/src/app/+admin/moderation/registration-list/registration-list.component.html b/client/src/app/+admin/moderation/registration-list/registration-list.component.html
index d0926d96eb..7e7a823c3c 100644
--- a/client/src/app/+admin/moderation/registration-list/registration-list.component.html
+++ b/client/src/app/+admin/moderation/registration-list/registration-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="user" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Registration requests</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="user" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Registration requests</h1>
+ </div>
+</div>
<p-table
[value]="registrations" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
index 7c3903688d..9ac8edb7ff 100644
--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="cross" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Video blocks</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="cross" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Video blocks</h1>
+ </div>
+</div>
<p-table
[value]="blocklist" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss
deleted file mode 100644
index a02b10c849..0000000000
--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-@use '_variables' as *;
-@use '_mixins' as *;
-
-my-global-icon {
- width: 24px;
- height: 24px;
-}
diff --git a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
index f04ac769be..c033cff690 100644
--- a/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
+++ b/client/src/app/+admin/moderation/video-block-list/video-block-list.component.ts
@@ -23,7 +23,7 @@ import { VideoBlockService } from '@app/shared/shared-moderation/video-block.ser
@Component({
selector: 'my-video-block-list',
templateUrl: './video-block-list.component.html',
- styleUrls: [ '../../../shared/shared-moderation/moderation.scss', './video-block-list.component.scss' ],
+ styleUrls: [ '../../../shared/shared-moderation/moderation.scss' ],
standalone: true,
imports: [
GlobalIconComponent,
diff --git a/client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.html b/client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.html
index 230cd365f4..99b711b8ab 100644
--- a/client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.html
+++ b/client/src/app/+admin/moderation/watched-words-list/watched-words-list-admin.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="eye-open" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Instance watched words lists</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="eye-open" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Instance watched words lists</h1>
+ </div>
+</div>
<em class="d-block" i18n>Video name/description and comments that contain any of the watched words are automatically tagged with the name of the list.</em>
<em class="d-block mb-3" i18n>These automatic tags can be used to filter comments and videos.</em>
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.html b/client/src/app/+admin/overview/comments/video-comment-list.component.html
index 0b87f0f38b..8b6a7d7db1 100644
--- a/client/src/app/+admin/overview/comments/video-comment-list.component.html
+++ b/client/src/app/+admin/overview/comments/video-comment-list.component.html
@@ -1,9 +1,11 @@
-<h1>
- <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Video comments</ng-container>
-
- <my-feed [syndicationItems]="syndicationItems"></my-feed>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon class="top--1px" iconName="message-circle" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Video comments</h1>
+
+ <my-feed [syndicationItems]="syndicationItems"></my-feed>
+ </div>
+</div>
<em i18n>This view also shows comments from muted accounts.</em>
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.scss b/client/src/app/+admin/overview/comments/video-comment-list.component.scss
deleted file mode 100644
index bd69b11f0f..0000000000
--- a/client/src/app/+admin/overview/comments/video-comment-list.component.scss
+++ /dev/null
@@ -1,9 +0,0 @@
-@use '_variables' as *;
-@use '_mixins' as *;
-
-my-feed {
- display: inline-block;
- width: 15px;
-
- @include margin-left(5px);
-}
diff --git a/client/src/app/+admin/overview/comments/video-comment-list.component.ts b/client/src/app/+admin/overview/comments/video-comment-list.component.ts
index 5d5e7b89d2..e10573e581 100644
--- a/client/src/app/+admin/overview/comments/video-comment-list.component.ts
+++ b/client/src/app/+admin/overview/comments/video-comment-list.component.ts
@@ -8,7 +8,6 @@ import { VideoCommentListAdminOwnerComponent } from '../../../shared/shared-vide
@Component({
selector: 'my-video-comment-list',
templateUrl: './video-comment-list.component.html',
- styleUrls: [ './video-comment-list.component.scss' ],
standalone: true,
imports: [
GlobalIconComponent,
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.html b/client/src/app/+admin/overview/users/user-list/user-list.component.html
index 9e56da40f6..21ec15efed 100644
--- a/client/src/app/+admin/overview/users/user-list/user-list.component.html
+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="user" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Users</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="user" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Users</h1>
+ </div>
+</div>
<p-table
[value]="users" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/overview/users/user-list/user-list.component.scss b/client/src/app/+admin/overview/users/user-list/user-list.component.scss
index a56d774e14..9b9502ffea 100644
--- a/client/src/app/+admin/overview/users/user-list/user-list.component.scss
+++ b/client/src/app/+admin/overview/users/user-list/user-list.component.scss
@@ -3,6 +3,11 @@
@use '_mixins' as *;
@use 'bootstrap/scss/functions' as *;
+.sub-title-container my-global-icon {
+ position: relative;
+ top: -2px;
+}
+
.banned-info {
font-style: italic;
}
@@ -20,10 +25,6 @@ p-tableCheckbox {
top: -2.5px;
}
-my-global-icon {
- width: 18px;
-}
-
@media screen and (max-width: $primeng-breakpoint) {
.empty-cell {
padding: 0;
diff --git a/client/src/app/+admin/overview/videos/video-list.component.html b/client/src/app/+admin/overview/videos/video-list.component.html
index cf1b272cc6..f82d5363b3 100644
--- a/client/src/app/+admin/overview/videos/video-list.component.html
+++ b/client/src/app/+admin/overview/videos/video-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Videos</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Videos</h1>
+ </div>
+</div>
<p-table
[value]="videos" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/system/debug/debug.component.html b/client/src/app/+admin/system/debug/debug.component.html
index 695c3e4ea3..465e662d64 100644
--- a/client/src/app/+admin/system/debug/debug.component.html
+++ b/client/src/app/+admin/system/debug/debug.component.html
@@ -1,17 +1,22 @@
-<div class="root">
- <h4 i18n>IP address</h4>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Debug</h1>
+ </div>
+</div>
- <p i18n>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p>
+<h2 class="fs-5" i18n>IP address</h2>
- <p i18n>If this is not your correct public IP, please consider fixing it because:</p>
- <ul>
- <li i18n>Views may not be counted correctly (reduced compared to what they should be)</li>
- <li i18n>Anti brute force system could be overzealous</li>
- <li i18n>P2P system could not work correctly</li>
- </ul>
+<p i18n>PeerTube thinks your web browser public IP is <strong>{{ debug?.ip }}</strong>.</p>
- <p i18n>To fix it:<p>
- <ul>
- <li i18n>Check the <code>trust_proxy</code> configuration key</li>
- </ul>
-</div>
+<p i18n>If this is not your correct public IP, please consider fixing it because:</p>
+<ul>
+ <li i18n>Views may not be counted correctly (reduced compared to what they should be)</li>
+ <li i18n>Anti brute force system could be overzealous</li>
+ <li i18n>P2P system could not work correctly</li>
+</ul>
+
+<p i18n>To fix it:<p>
+<ul>
+ <li i18n>Check the <code>trust_proxy</code> configuration key</li>
+</ul>
diff --git a/client/src/app/+admin/system/debug/debug.component.ts b/client/src/app/+admin/system/debug/debug.component.ts
index dc29f1bbc8..0b800b5615 100644
--- a/client/src/app/+admin/system/debug/debug.component.ts
+++ b/client/src/app/+admin/system/debug/debug.component.ts
@@ -2,11 +2,15 @@ import { Component, OnInit } from '@angular/core'
import { Notifier } from '@app/core'
import { Debug } from '@peertube/peertube-models'
import { DebugService } from './debug.service'
+import { GlobalIconComponent } from '@app/shared/shared-icons/global-icon.component'
@Component({
templateUrl: './debug.component.html',
styleUrls: [ './debug.component.scss' ],
- standalone: true
+ standalone: true,
+ imports: [
+ GlobalIconComponent
+ ]
})
export class DebugComponent implements OnInit {
debug: Debug
diff --git a/client/src/app/+admin/system/jobs/jobs.component.html b/client/src/app/+admin/system/jobs/jobs.component.html
index 40017cf1e9..2c343eb948 100644
--- a/client/src/app/+admin/system/jobs/jobs.component.html
+++ b/client/src/app/+admin/system/jobs/jobs.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Local jobs</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="circle-tick" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Local jobs</h1>
+ </div>
+</div>
<div class="admin-sub-header">
<div class="select-filter-block">
diff --git a/client/src/app/+admin/system/jobs/jobs.component.scss b/client/src/app/+admin/system/jobs/jobs.component.scss
index 94a5fd53a5..5b16c1a987 100644
--- a/client/src/app/+admin/system/jobs/jobs.component.scss
+++ b/client/src/app/+admin/system/jobs/jobs.component.scss
@@ -59,5 +59,5 @@ pre {
}
.job-error {
- color: #ff0000;
+ color: pvar(--red);
}
diff --git a/client/src/app/+admin/system/logs/logs.component.html b/client/src/app/+admin/system/logs/logs.component.html
index 28e8fde26f..dee0fe5f56 100644
--- a/client/src/app/+admin/system/logs/logs.component.html
+++ b/client/src/app/+admin/system/logs/logs.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Logs</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Logs</h1>
+ </div>
+</div>
<div class="header">
diff --git a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
index ae383f1d3f..ec026025b0 100644
--- a/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-job-list/runner-job-list.component.html
@@ -1,14 +1,16 @@
-<h1 class="d-flex justify-content-between">
- <span class="text-nowrap me-2">
- <my-global-icon iconName="globe" aria-hidden="true"></my-global-icon>
- <span i18n>Runner jobs</span>
- </span>
-
- <a routerLink="/admin/system/runners/runners-list" class="peertube-button-link peertube-button-icon grey-button">
- <my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Remote runners</ng-container>
- </a>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon class="top--1px" iconName="globe" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Runner jobs</h1>
+ </div>
+
+ <div>
+ <a routerLink="/admin/system/runners/runners-list" class="peertube-button-link peertube-button-icon grey-button">
+ <my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
+ <ng-container i18n>Remote runners</ng-container>
+ </a>
+ </div>
+</div>
<p-table
[value]="runnerJobs" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
index a95be38028..1a4913a315 100644
--- a/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-list/runner-list.component.html
@@ -1,14 +1,16 @@
-<h1 class="d-flex justify-content-between">
- <span class="text-nowrap me-2">
+<div class="sub-title-container">
+ <span class="sub-title">
<my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Remote runners</ng-container>
+ <h1 i18n>Remote runners</h1>
</span>
- <a routerLink="/admin/system/runners/registration-tokens-list" class="peertube-button-link peertube-button-icon grey-button">
- <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Runner registration tokens</ng-container>
- </a>
-</h1>
+ <div>
+ <a routerLink="/admin/system/runners/registration-tokens-list" class="peertube-button-link peertube-button-icon grey-button">
+ <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
+ <ng-container i18n>Runner registration tokens</ng-container>
+ </a>
+ </div>
+</div>
<p-table
[value]="runners" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
index 72e2a1978e..9c2d552913 100644
--- a/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
+++ b/client/src/app/+admin/system/runners/runner-registration-token-list/runner-registration-token-list.component.html
@@ -1,7 +1,7 @@
-<h1 class="d-flex justify-content-between">
- <span class="text-nowrap me-2">
+<div class="sub-title-container">
+ <span class="sub-title">
<my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Runner registration tokens</ng-container>
+ <h1 i18n>Runner registration tokens</h1>
</span>
<div>
@@ -10,7 +10,7 @@
<ng-container i18n>Remote runners</ng-container>
</a>
</div>
-</h1>
+</div>
<p-table
[value]="registrationTokens" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage" [first]="pagination.start"
diff --git a/client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.html b/client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.html
index e83b59019a..48371bf483 100644
--- a/client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.html
+++ b/client/src/app/+my-account/my-account-abuses/my-account-abuses-list.component.html
@@ -1,6 +1,8 @@
-<h1>
- <my-global-icon iconName="flag" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Reports</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="flag" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Reports</h1>
+ </div>
+</div>
<my-abuse-list-table viewType="user"></my-abuse-list-table>
diff --git a/client/src/app/+my-account/my-account-applications/my-account-applications.component.html b/client/src/app/+my-account/my-account-applications/my-account-applications.component.html
index 3550488819..63d3fae208 100644
--- a/client/src/app/+my-account/my-account-applications/my-account-applications.component.html
+++ b/client/src/app/+my-account/my-account-applications/my-account-applications.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Applications</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="codesandbox" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Applications</h1>
+ </div>
+</div>
<div class="pt-two-cols"> <!-- built-in token grid -->
diff --git a/client/src/app/+my-account/my-account-auto-tag-policies/my-account-auto-tag-policies.component.html b/client/src/app/+my-account/my-account-auto-tag-policies/my-account-auto-tag-policies.component.html
index 8aa15f8728..d1c6c07123 100644
--- a/client/src/app/+my-account/my-account-auto-tag-policies/my-account-auto-tag-policies.component.html
+++ b/client/src/app/+my-account/my-account-auto-tag-policies/my-account-auto-tag-policies.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="no" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Your automatic tag policies</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="no" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Your automatic tag policies</h1>
+ </div>
+</div>
<strong class="d-block mb-3" i18n>Automatically block comments:</strong>
diff --git a/client/src/app/+my-account/my-account-comments-on-my-videos/comments-on-my-videos.component.html b/client/src/app/+my-account/my-account-comments-on-my-videos/comments-on-my-videos.component.html
index 265767cb84..597acee178 100644
--- a/client/src/app/+my-account/my-account-comments-on-my-videos/comments-on-my-videos.component.html
+++ b/client/src/app/+my-account/my-account-comments-on-my-videos/comments-on-my-videos.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Comments on your videos</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="message-circle" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Comments on your videos</h1>
+ </div>
+</div>
<my-video-comment-list-admin-owner mode="user"></my-video-comment-list-admin-owner>
diff --git a/client/src/app/+my-account/my-account-import-export/my-account-import-export.component.html b/client/src/app/+my-account/my-account-import-export/my-account-import-export.component.html
index c4c0c9c53f..aefcddf3a0 100644
--- a/client/src/app/+my-account/my-account-import-export/my-account-import-export.component.html
+++ b/client/src/app/+my-account/my-account-import-export/my-account-import-export.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Import/Export</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Import/Export</h1>
+ </div>
+</div>
<my-account-import #accountImport [videoQuotaUsed]="videoQuotaUsed" class="d-block mb-5"></my-account-import>
diff --git a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html
index dd244ec008..dec372636f 100644
--- a/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html
+++ b/client/src/app/+my-account/my-account-notifications/my-account-notifications.component.html
@@ -1,4 +1,9 @@
-<h1 class="visually-hidden" i18n>Notifications</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="bell" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Notifications</h1>
+ </div>
+</div>
<div class="header">
<a class="peertube-button-link grey-button" routerLink="/my-account/settings" fragment="notifications">
diff --git a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html
index 7260916b67..eefd315017 100644
--- a/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html
+++ b/client/src/app/+my-account/my-account-settings/my-account-two-factor/my-account-two-factor.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Two factor authentication</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="cog" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Two factor authentication</h1>
+ </div>
+</div>
<div i18n *ngIf="twoFactorAlreadyEnabled === true" class="root already-enabled">
Two factor authentication is already enabled.
diff --git a/client/src/app/+my-account/my-account-watched-words-list/my-account-watched-words-list.component.html b/client/src/app/+my-account/my-account-watched-words-list/my-account-watched-words-list.component.html
index 132bf5a699..0f01ea5659 100644
--- a/client/src/app/+my-account/my-account-watched-words-list/my-account-watched-words-list.component.html
+++ b/client/src/app/+my-account/my-account-watched-words-list/my-account-watched-words-list.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="no" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Your watched words lists</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="no" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Your watched words lists</h1>
+ </div>
+</div>
<em class="d-block" i18n>Comments that contain any of the watched words are automatically tagged with the name of the list.</em>
<em class="d-block mb-3" i18n>These automatic tags can be used to filter comments or <a routerLink="/my-account/auto-tag-policies">automatically block</a> them.</em>
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html
index c3f7eb42ea..d4d1c09313 100644
--- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html
+++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.html
@@ -1,17 +1,17 @@
-<h1>
- <span class="text-nowrap me-2">
+<div class="sub-title-container">
+ <div class="sub-title">
<my-global-icon iconName="channel" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My channels</ng-container>
- <span *ngIf="this.pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ this.pagination.totalItems }}</span>
- </span>
+ <h1 i18n>My channels</h1>
+ <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ pagination.totalItems }}</span>
+ </div>
<div>
- <a routerLink="/my-library/video-channel-syncs" class="button-link">
+ <a routerLink="/my-library/video-channel-syncs" class="peertube-button-link grey-button peertube-button-icon">
<my-global-icon iconName="repeat" aria-hidden="true"></my-global-icon>
<ng-container i18n>My synchronizations</ng-container>
</a>
</div>
-</h1>
+</div>
<my-channels-setup-message [hideLink]="true"></my-channels-setup-message>
diff --git a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss
index 7034ff9bfe..8367ef2dd6 100644
--- a/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss
+++ b/client/src/app/+my-library/+my-video-channels/my-video-channels.component.scss
@@ -1,19 +1,9 @@
@use '_variables' as *;
@use '_mixins' as *;
-h1 {
- display: flex;
- justify-content: space-between;
-
- my-global-icon {
- top: -4px;
- }
-
- .button-link {
- @include peertube-button-link;
- @include grey-button;
- @include button-with-icon(18px, 3px, -1px);
- }
+.sub-title my-global-icon {
+ position: relative;
+ top: -3px;
}
input[type=text] {
diff --git a/client/src/app/+my-library/my-follows/my-followers.component.html b/client/src/app/+my-library/my-follows/my-followers.component.html
index 43d0267d47..205c2473c8 100644
--- a/client/src/app/+my-library/my-follows/my-followers.component.html
+++ b/client/src/app/+my-library/my-follows/my-followers.component.html
@@ -1,10 +1,9 @@
-<div class="d-flex">
- <h1 class="text-nowrap">
+<div class="sub-title-container">
+ <div class="sub-title">
<my-global-icon iconName="follower" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My followers</ng-container>
- </h1>
-
- <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
+ <h1 i18n>My followers</h1>
+ <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
+ </div>
</div>
<div class="followers-header">
diff --git a/client/src/app/+my-library/my-follows/my-subscriptions.component.html b/client/src/app/+my-library/my-follows/my-subscriptions.component.html
index b10a956035..547eb8c734 100644
--- a/client/src/app/+my-library/my-follows/my-subscriptions.component.html
+++ b/client/src/app/+my-library/my-follows/my-subscriptions.component.html
@@ -1,12 +1,12 @@
-<h1>
- <span class="text-nowrap me-2">
+<div class="sub-title-container">
+ <div class="sub-title">
<my-global-icon iconName="subscriptions" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My subscriptions</ng-container>
+ <h1 i18n>My subscriptions</h1>
<span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
- </span>
-</h1>
+ </div>
+</div>
-<div class="video-subscriptions-header">
+<div class="mb-3">
<my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>
</div>
diff --git a/client/src/app/+my-library/my-follows/my-subscriptions.component.scss b/client/src/app/+my-library/my-follows/my-subscriptions.component.scss
index 310e11cb08..ffb55abae4 100644
--- a/client/src/app/+my-library/my-follows/my-subscriptions.component.scss
+++ b/client/src/app/+my-library/my-follows/my-subscriptions.component.scss
@@ -2,11 +2,6 @@
@use '_mixins' as *;
@use '_actor' as *;
-.video-subscriptions-header {
- margin-bottom: 30px;
- display: flex;
-}
-
input[type=text] {
@include peertube-input-text(300px);
}
diff --git a/client/src/app/+my-library/my-history/my-history.component.html b/client/src/app/+my-library/my-history/my-history.component.html
index 7203ba5295..e41a2ba2ab 100644
--- a/client/src/app/+my-library/my-history/my-history.component.html
+++ b/client/src/app/+my-library/my-history/my-history.component.html
@@ -1,8 +1,10 @@
-<h1>
- <my-global-icon iconName="history" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My watch history</ng-container>
- <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ pagination.totalItems }}</span>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="history" aria-hidden="true"></my-global-icon>
+ <h1 i18n>My watch history</h1>
+ <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ pagination.totalItems }}</span>
+ </div>
+</div>
<div class="top-buttons">
<div class="search-wrapper">
diff --git a/client/src/app/+my-library/my-ownership/my-ownership.component.html b/client/src/app/+my-library/my-ownership/my-ownership.component.html
index daf2dec110..e151415a6b 100644
--- a/client/src/app/+my-library/my-ownership/my-ownership.component.html
+++ b/client/src/app/+my-library/my-ownership/my-ownership.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="download" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My ownership changes</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="download" aria-hidden="true"></my-global-icon>
+ <h1 i18n>My ownership changes</h1>
+ </div>
+</div>
<p-table
[value]="videoChangeOwnerships" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords" [rows]="rowsPerPage"
diff --git a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
index 082f8e34fa..e271fb9278 100644
--- a/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
+++ b/client/src/app/+my-library/my-video-channel-syncs/my-video-channel-syncs.component.html
@@ -1,9 +1,11 @@
<my-alert *ngIf="error" type="danger">{{ error }}</my-alert>
-<h1>
- <my-global-icon iconName="refresh" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My synchronizations</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="refresh" aria-hidden="true"></my-global-icon>
+ <ng-container i18n>My synchronizations</ng-container>
+ </div>
+</div>
<div *ngIf="!syncEnabled()">
<p class="muted" i18n>⚠️ The instance doesn't allow channel synchronization</p>
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html
index 1d0671a326..2d7e603b70 100644
--- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.html
+++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.html
@@ -1,14 +1,16 @@
-<h1 class="d-flex justify-content-between">
- <span>
+<div class="sub-title-container">
+ <div class="sub-title">
<my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My imports</ng-container>
- </span>
+ <h1 i18n>My imports</h1>
+ </div>
- <a routerLink="/my-library/video-channel-syncs" class="button-link">
- <my-global-icon iconName="repeat" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My synchronizations</ng-container>
- </a>
-</h1>
+ <div>
+ <a routerLink="/my-library/video-channel-syncs" class="peertube-button-link peertube-icon-link grey-button">
+ <my-global-icon iconName="repeat" aria-hidden="true"></my-global-icon>
+ <ng-container i18n>My synchronizations</ng-container>
+ </a>
+ </div>
+</div>
<div class="mb-4 d-flex justify-content-between">
<my-advanced-input-filter (search)="onSearch($event)"></my-advanced-input-filter>
diff --git a/client/src/app/+my-library/my-video-imports/my-video-imports.component.scss b/client/src/app/+my-library/my-video-imports/my-video-imports.component.scss
index d9b12151ea..9005340521 100644
--- a/client/src/app/+my-library/my-video-imports/my-video-imports.component.scss
+++ b/client/src/app/+my-library/my-video-imports/my-video-imports.component.scss
@@ -6,11 +6,5 @@ pre {
}
.video-import-error {
- color: #ff0000;
-}
-
-.button-link {
- @include peertube-button-link;
- @include grey-button;
- @include button-with-icon(18px, 3px, -1px);
+ color: pvar(--red);
}
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html
index 6bbbf01cab..fd326e03ce 100644
--- a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html
+++ b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.html
@@ -1,8 +1,10 @@
-<h1>
- <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My playlists</ng-container>
- <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ pagination.totalItems }}</span>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="playlists" aria-hidden="true"></my-global-icon>
+ <h1 i18n>My playlists</h1>
+ <span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary">{{ pagination.totalItems }}</span>
+ </div>
+</div>
<my-channels-setup-message></my-channels-setup-message>
diff --git a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.scss b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.scss
index 962e2b2716..b8cd353594 100644
--- a/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.scss
+++ b/client/src/app/+my-library/my-video-playlists/my-video-playlists.component.scss
@@ -1,10 +1,6 @@
@use '_variables' as *;
@use '_mixins' as *;
-h1 {
- display: flex;
-}
-
input[type=text] {
@include peertube-input-text(300px);
}
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.html b/client/src/app/+my-library/my-videos/my-videos.component.html
index b8092fb77c..a39f88e1c8 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.html
+++ b/client/src/app/+my-library/my-videos/my-videos.component.html
@@ -1,22 +1,22 @@
-<h1>
- <span class="text-nowrap me-2">
+<div class="sub-title-container">
+ <div class="sub-title">
<my-global-icon iconName="videos" aria-hidden="true"></my-global-icon>
- <ng-container i18n>My videos</ng-container>
+ <h1 i18n>My videos</h1>
<span *ngIf="pagination.totalItems" [title]="getTotalTitle()" class="pt-badge badge-secondary"> {{ pagination.totalItems }}</span>
- </span>
+ </div>
<div>
- <a routerLink="/my-library/video-imports" class="button-link">
+ <a routerLink="/my-library/video-imports" class="peertube-button-link grey-button peertube-button-icon me-2">
<my-global-icon iconName="cloud-download" aria-hidden="true"></my-global-icon>
<ng-container i18n>My imports</ng-container>
</a>
- <a routerLink="/my-library/ownership" class="button-link">
+ <a routerLink="/my-library/ownership" class="peertube-button-link grey-button peertube-button-icon">
<my-global-icon iconName="users" aria-hidden="true"></my-global-icon>
<ng-container i18n>Ownership changes</ng-container>
</a>
</div>
-</h1>
+</div>
<div class="videos-header d-flex justify-content-between gap-2">
<my-advanced-input-filter [emitOnInit]="false" [filters]="inputFilters" (search)="onSearch($event)"></my-advanced-input-filter>
diff --git a/client/src/app/+my-library/my-videos/my-videos.component.scss b/client/src/app/+my-library/my-videos/my-videos.component.scss
index c131fc8e9f..9a2af6ac9d 100644
--- a/client/src/app/+my-library/my-videos/my-videos.component.scss
+++ b/client/src/app/+my-library/my-videos/my-videos.component.scss
@@ -10,21 +10,6 @@ input[type=text] {
@include margin-left(0.5rem);
}
-h1 {
- display: flex;
- justify-content: space-between;
-
- .button-link {
- @include peertube-button-link;
- @include grey-button;
- @include button-with-icon(18px, 3px, -1px);
-
- &:not(:last-child) {
- @include margin-right(10px);
- }
- }
-}
-
.action-button-delete-selection {
display: inline-block;
diff --git a/client/src/app/shared/shared-moderation/account-blocklist.component.html b/client/src/app/shared/shared-moderation/account-blocklist.component.html
index 951db6133f..65fde65e40 100644
--- a/client/src/app/shared/shared-moderation/account-blocklist.component.html
+++ b/client/src/app/shared/shared-moderation/account-blocklist.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="user-x" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Muted accounts</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="user-x" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Muted accounts</h1>
+ </div>
+</div>
<p-table
[value]="blockedAccounts" [lazy]="true" [paginator]="totalRecords > 0" [totalRecords]="totalRecords"
diff --git a/client/src/app/shared/shared-moderation/server-blocklist.component.html b/client/src/app/shared/shared-moderation/server-blocklist.component.html
index 5a7ef984be..59ebc85f2a 100644
--- a/client/src/app/shared/shared-moderation/server-blocklist.component.html
+++ b/client/src/app/shared/shared-moderation/server-blocklist.component.html
@@ -1,7 +1,9 @@
-<h1>
- <my-global-icon iconName="peertube-x" aria-hidden="true"></my-global-icon>
- <ng-container i18n>Muted servers</ng-container>
-</h1>
+<div class="sub-title-container">
+ <div class="sub-title">
+ <my-global-icon iconName="peertube-x" aria-hidden="true"></my-global-icon>
+ <h1 i18n>Muted servers</h1>
+ </div>
+</div>
<p-table
[value]="blockedServers" [paginator]="totalRecords > 0" [totalRecords]="totalRecords"
diff --git a/client/src/sass/class-helpers/_position.scss b/client/src/sass/class-helpers/_position.scss
new file mode 100644
index 0000000000..e3a6f386dd
--- /dev/null
+++ b/client/src/sass/class-helpers/_position.scss
@@ -0,0 +1,19 @@
+.top--1px {
+ position: relative;
+ top: -1px;
+}
+
+.top-1px {
+ position: relative;
+ top: 1px;
+}
+
+.top--2px {
+ position: relative;
+ top: -2px;
+}
+
+.top-2px {
+ position: relative;
+ top: 2px;
+}
diff --git a/client/src/sass/class-helpers/index.scss b/client/src/sass/class-helpers/index.scss
index daa3399409..c9c8dcba74 100644
--- a/client/src/sass/class-helpers/index.scss
+++ b/client/src/sass/class-helpers/index.scss
@@ -6,3 +6,4 @@
@use './_menu';
@use './_text';
@use './_layout';
+@use './_position';
diff --git a/client/src/sass/include/_mixins.scss b/client/src/sass/include/_mixins.scss
index 737eeb4c58..1420b8a9d8 100644
--- a/client/src/sass/include/_mixins.scss
+++ b/client/src/sass/include/_mixins.scss
@@ -642,26 +642,52 @@
}
@mixin sub-menu-h1 {
- ::ng-deep h1 {
- font-size: 1.3rem;
+ ::ng-deep .sub-title-container {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ flex-wrap: wrap;
+ gap: 0.5rem;
+
border-bottom: 2px solid $grey-background-color;
padding-bottom: 15px;
margin-bottom: $sub-menu-margin-bottom;
- > span > my-global-icon,
- > my-global-icon {
- width: 24px;
- height: 24px;
- position: relative;
- top: -2px;
-
- @include margin-right(10px);
+ > * {
+ gap: 0.5rem;
+ display: flex;
+ align-items: center;
}
- .pt-badge {
- vertical-align: top;
-
- @include margin-left(7px);
+ .sub-title {
+ &,
+ h1 {
+ font-size: 1.3rem;
+ }
+
+ h1 {
+ margin: 0;
+ }
+
+ > my-global-icon {
+ width: 24px;
+ height: 24px;
+
+ svg {
+ vertical-align: initial;
+ }
+ }
+
+ my-feed {
+ display: inline-block;
+ width: 15px;
+
+ my-global-icon svg {
+ vertical-align: initial;
+ position: relative;
+ top: 1px;
+ }
+ }
}
}
}