-
-
Notifications
You must be signed in to change notification settings - Fork 18
Minor fixes #1717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Minor fixes #1717
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,22 +39,23 @@ | |
|
|
||
| <!-- Collapsed table list for any folder --> | ||
| <div *ngIf="showCollapsedTableList" class="collapsed-tables-list"> | ||
| <a *ngFor="let tableItem of getCollapsedTableList()" | ||
| class="collapsed-table-item" | ||
| routerLink="/dashboard/{{connectionID}}/{{tableItem.table}}" | ||
| [queryParams]="{page_index: 0, page_size: 30}" | ||
| [ngClass]="{'collapsed-table-item_active': selectedTable === tableItem.table}" | ||
| <div *ngFor="let tableItem of getCollapsedTableList()" | ||
| [matTooltip]="getTableName(tableItem)" | ||
| matTooltipPosition="right" | ||
| (click)="closeSidebar()"> | ||
| <!-- Show icon if available, otherwise show initials --> | ||
| <mat-icon *ngIf="tableItem.icon; else tableNameInitials" class="table-list-icon"> | ||
| {{tableItem.icon}} | ||
| </mat-icon> | ||
| <ng-template #tableNameInitials> | ||
| {{tableItem.initials}} | ||
| </ng-template> | ||
| </a> | ||
| matTooltipPosition="right"> | ||
| <a class="collapsed-table-item" | ||
| routerLink="/dashboard/{{connectionID}}/{{tableItem.table}}" | ||
| [queryParams]="{page_index: 0, page_size: 30}" | ||
| [ngClass]="{'collapsed-table-item_active': selectedTable === tableItem.table}" | ||
| (click)="closeSidebar()"> | ||
| <!-- Show icon if available, otherwise show initials --> | ||
| <mat-icon *ngIf="tableItem.icon; else tableNameInitials" class="table-list-icon"> | ||
| {{tableItem.icon}} | ||
| </mat-icon> | ||
| <ng-template #tableNameInitials> | ||
| {{tableItem.initials}} | ||
| </ng-template> | ||
| </a> | ||
| </div> | ||
| </div> | ||
| </div> | ||
|
|
||
|
|
@@ -110,7 +111,9 @@ | |
| class="material-symbols-outlined folder-icon" | ||
| [style.color]="folder.iconColor || null">folder</span> | ||
|
|
||
| <div class="folder-name"> | ||
| <div class="folder-name" | ||
| [matTooltip]="folder.name" | ||
| [matTooltipDisabled]="folder.name.length <= 18"> | ||
| {{folder.name}} | ||
| </div> | ||
|
|
||
|
|
@@ -148,6 +151,8 @@ | |
| (cdkDropListDropped)="onTableReorder($event, folder)"> | ||
| <div *ngFor="let table of getFolderTables(folder)" | ||
| class="selected-table-item" | ||
| [matTooltip]="getTableName(table)" | ||
| [matTooltipDisabled]="getTableNameLength(getTableName(table)) <= 18" | ||
| cdkDrag | ||
|
Comment on lines
152
to
156
|
||
| [cdkDragDisabled]="!isReorderingEnabled(folder)"> | ||
| <mat-icon *ngIf="isReorderingEnabled(folder)" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
matTooltipis attached to the wrapping<div>(not the<a>), but the<div>is not focusable. This means keyboard users focusing the link won’t get the tooltip on focus (regression vs when tooltip was on the anchor). Move the tooltip bindings onto the<a>or make the tooltip host focusable (e.g.,tabindex="0") and ensure focus/aria behavior is correct.