1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-23 01:27:14 +02:00

Fixing default theme #587

This commit is contained in:
Patrik J. Braun 2023-08-06 21:51:10 +02:00
parent 92ff423794
commit 287620a7c3
4 changed files with 5 additions and 17 deletions

View File

@ -57,7 +57,7 @@
</ng-container>
<li class="nav-item d-xl-block d-none">
<span>
<app-language #languageSelector class="navbar-btn" [isDark]="true"></app-language>
<app-language #languageSelector class="navbar-btn" ></app-language>
</span>
</li>
<li class="nav-item divider-vertical d-xl-block d-none">
@ -66,7 +66,7 @@
<div class="btn-group" dropdown #dropdown="bs-dropdown" placement="bottom"
[autoClose]="false" container="body">
<button id="button-alignment" dropdownToggle
type="button" class="btn btn-dark dropdown-toggle"
type="button" class="btn btn-tertiary dropdown-toggle"
aria-controls="dropdown-alignment">
<span class="oi oi-menu"></span>
<span *ngIf="isAdmin() && notificationService.numberOfNotifications>0"
@ -81,7 +81,7 @@
<ng-container *ngIf="authenticationRequired && user.value">
<span class="oi oi-person"></span>{{user.value.name}}
</ng-container>
<app-language class="navbar-btn d-inline-block" [isDark]="false"></app-language>
<app-language class="navbar-btn d-inline-block"></app-language>
</div>
</li>
<li class="nav-item d-xl-none" *ngIf="showShare">

View File

@ -1,13 +1,3 @@
.dropdown-menu {
min-width: auto;
}
.dark {
background-color: #000;
color: rgba(255, 255, 255, 0.55);
border-color: transparent;
}
.dark:hover {
border-color: #adadad;
}

View File

@ -1,12 +1,11 @@
<div class="dropdown" dropdown #dropdown="bs-dropdown">
<button dropdownToggle
class="btn btn-secondary dropdown-toggle"
class="btn btn-tertiary dropdown-toggle"
type="button"
id="language"
data-toggle="dropdown"
aria-haspopup="true"
aria-expanded="true"
[ngClass]="isDark?'dark':''">
aria-expanded="true">
<ng-container *ngIf="current != null">
{{current}}
</ng-container>

View File

@ -10,7 +10,6 @@ import {BsDropdownDirective} from 'ngx-bootstrap/dropdown';
styleUrls: ['./language.component.css'],
})
export class LanguageComponent {
@Input() isDark: boolean;
languages: string[] = [];
current: string = null;
urlBase = Config.Server.urlBase;