Fix upload link accessibility

This commit is contained in:
Chocobozzz 2024-09-20 09:12:49 +02:00
parent 68adc696b9
commit 4ba9da72a9
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
4 changed files with 10 additions and 25 deletions

View File

@ -18,7 +18,7 @@
<input type="text" id="targetUrl" [(ngModel)]="targetUrl" class="form-control" />
<div *ngIf="isChannelSyncEnabled()" class="form-group-description" i18n>
You can also synchronize a remote channel in <a routerLink="/my-library/video-channel-syncs">your library</a>
You can also synchronize a remote channel in <a class="text-decoration-underline" routerLink="/my-library/video-channel-syncs">your library</a>
</div>
</div>

View File

@ -33,7 +33,7 @@
<div *ngIf="isRootUser()" class="upload-message root-user alert alert-warning" i18n>
We recommend you to not use the <strong>root</strong> user to publish your videos, since it's the super-admin account of your instance.
<br />
Instead, <a routerLink="/admin/users">create a dedicated account</a> to upload your videos.
Instead, <a class="text-decoration-underline alert-link" routerLink="/admin/users">create a dedicated account</a> to upload your videos.
</div>
</ng-container>

View File

@ -1,8 +1,7 @@
<div *ngIf="hasChannelNotConfigured()" class="channels-setup-message alert pt-alert-primary">
<div *ngIf="hasChannelNotConfigured()" class="alert pt-alert-primary">
<my-global-icon iconName="tip"></my-global-icon>
<div>
<div i18n>Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a <strong>banner</strong>, an <strong>avatar</strong> and a <strong>description</strong>.</div>
<a *ngIf="!hideLink" class="channels-settings-link" routerLink="/my-library/video-channels" i18n>Set up my channels</a>
</div>
<div i18n>Some of your channels are not fully set up. Make them welcoming and explicit about what you publish by adding a <strong>banner</strong>, an <strong>avatar</strong> and a <strong>description</strong>.</div>
<a *ngIf="!hideLink" class="peertube-button-link grey-button mt-2" routerLink="/my-library/video-channels" i18n>Set up my channels</a>
</div>

View File

@ -1,28 +1,14 @@
@use '_variables' as *;
@use '_mixins' as *;
.channels-setup-message {
display: flex;
align-items: center;
justify-content: center;
.pt-alert-primary {
text-align: center;
}
my-global-icon {
width: 32px;
align-self: flex-start;
display: inline-block;
margin-bottom: 0.75rem;
@include apply-svg-color(pvar(--mainColor));
+ div {
margin-left: 10px;
text-align: center;
}
}
.channels-settings-link {
height: fit-content;
margin-top: 10px;
@include peertube-button-link;
@include grey-button;
}