Skip to content

Commit

Permalink
change placement of page header tooltips to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Oct 19, 2024
1 parent bdf7f3a commit 1f13442
Showing 5 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.
- updates to `fi.json` language file (#2206) (@l1500s)
- updates to `ru.json` language file (#2207) (@SeregaTarasov)
- add plugin list modal for updating to hb v2.0
- change placement of page header tooltips to bottom

### Other Changes

4 changes: 4 additions & 0 deletions ui/src/app/modules/accessories/accessories.component.html
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@ <h3 class="primary-text m-0">{{ 'accessories.title_accessories' | translate }}</
[hidden]="isMobile"
(click)="addRoom()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'accessories.button_add_room' | translate"
@@ -26,6 +27,7 @@ <h3 class="primary-text m-0">{{ 'accessories.title_accessories' | translate }}</
[hidden]="isMobile"
(click)="hideHidden = !hideHidden"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="hideHidden ? ('accessories.button_hidden_show' | translate) : ('accessories.button_hidden_hide' | translate)"
@@ -41,6 +43,7 @@ <h3 class="primary-text m-0">{{ 'accessories.title_accessories' | translate }}</
[disabled]="!isMobile"
(click)="toggleLayoutLock()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'form.button_unlock' | translate"
@@ -54,6 +57,7 @@ <h3 class="primary-text m-0">{{ 'accessories.title_accessories' | translate }}</
[disabled]="isMobile"
(click)="toggleLayoutLock()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'form.button_lock' | translate"
4 changes: 4 additions & 0 deletions ui/src/app/modules/config-editor/config-editor.component.html
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ <h3 class="primary-text m-0">{{ 'menu.config_json_editor' | translate }}</h3>
class="btn btn-elegant waves-effect my-0"
(click)="onExportConfig()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
*ngIf="!originalConfig"
@@ -22,6 +23,7 @@ <h3 class="primary-text m-0">{{ 'menu.config_json_editor' | translate }}</h3>
[disabled]="saveInProgress"
*ngIf="originalConfig"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
ngbTooltip="{{ 'form.button_cancel' | translate }}"
@@ -33,6 +35,7 @@ <h3 class="primary-text m-0">{{ 'menu.config_json_editor' | translate }}</h3>
class="btn btn-elegant waves-effect my-0"
(click)="onRestore()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
*ngIf="!originalConfig"
@@ -46,6 +49,7 @@ <h3 class="primary-text m-0">{{ 'menu.config_json_editor' | translate }}</h3>
(click)="onSave()"
[disabled]="saveInProgress"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
ngbTooltip="{{ 'form.button_save' | translate }}"
10 changes: 10 additions & 0 deletions ui/src/app/modules/logs/logs.component.html
Original file line number Diff line number Diff line change
@@ -6,13 +6,23 @@ <h3 class="primary-text m-0">{{ 'menu.linux.label_logs' | translate }}</h3>
<button
class="btn btn-elegant my-0"
(click)="downloadLogFile()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'logs.label_download' | translate"
[attr.aria-label]="'logs.label_download' | translate"
>
<i class="fas fa-fw fa-download"></i>
</button>
<button
class="btn btn-elegant my-0 mr-0"
(click)="truncateLogFile()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'form.button_delete' | translate"
[attr.aria-label]="'form.button_delete' | translate"
>
<i class="fas fa-fw fa-trash-alt"></i>
2 changes: 2 additions & 0 deletions ui/src/app/modules/status/status.component.html
Original file line number Diff line number Diff line change
@@ -21,6 +21,7 @@ <h3 class="primary-text m-0">{{ 'menu.label_status' | translate }}</h3>
[disabled]="options.draggable.enabled"
(click)="unlockLayout()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'form.button_unlock' | translate"
@@ -34,6 +35,7 @@ <h3 class="primary-text m-0">{{ 'menu.label_status' | translate }}</h3>
[disabled]="!options.draggable.enabled"
(click)="lockLayout()"
container="body"
placement="bottom"
openDelay="150"
triggers="hover"
[ngbTooltip]="'form.button_lock' | translate"

0 comments on commit 1f13442

Please sign in to comment.