Skip to content

Commit 2a341c3

Browse files
committed
Make tooltip wider to fit the german language
1 parent 54f7ace commit 2a341c3

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

src/ng-app/app/keyboard-backlight/keyboard-backlight.component.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333

3434
<div class="keyboard-backlight-content content" *ngIf="keyboardBacklightCapabilities !== undefined"
3535
[ngClass]="{'not-available': !this.config.getSettings().keyboardBacklightControlEnabled }"
36-
[matTooltip]="!this.config.getSettings().keyboardBacklightControlEnabled ? this.config.keyboardBacklightControlDisabledMessage : ''">
36+
[matTooltip]="!this.config.getSettings().keyboardBacklightControlEnabled ? this.config.keyboardBacklightControlDisabledMessage : ''"
37+
matTooltipClass="wider-tooltip">
38+
3739
<div *ngIf="keyboardBacklightCapabilities.maxRed > 0 && keyboardBacklightCapabilities.maxGreen > 0 && keyboardBacklightCapabilities.maxBlue > 0">
3840
<div *ngIf="keyboardBacklightCapabilities.zones >= 1">
3941
<mat-grid-list [cols]="9" rowHeight="1227:2709" class="keyboard-color-grid">

src/ng-app/app/keyboard-backlight/keyboard-backlight.component.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ content.value {
4545
stroke:LightGrey;
4646
}
4747
}
48+
}
49+
50+
.wider-tooltip {
51+
max-width: 275px !important;
4852
}

src/ng-app/app/keyboard-backlight/keyboard-backlight.component.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
* along with TUXEDO Control Center. If not, see <https://www.gnu.org/licenses/>.
1818
*/
1919

20-
import { Component, OnInit } from '@angular/core';
20+
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
2121
import { ConfigService } from '../config.service';
2222
import { Subscription } from 'rxjs';
2323
import { TccDBusClientService } from '../tcc-dbus-client.service';
@@ -26,7 +26,8 @@ import { KeyboardBacklightCapabilitiesInterface, KeyboardBacklightColorModes, Ke
2626
@Component({
2727
selector: 'app-keyboard-backlight',
2828
templateUrl: './keyboard-backlight.component.html',
29-
styleUrls: ['./keyboard-backlight.component.scss']
29+
styleUrls: ['./keyboard-backlight.component.scss'],
30+
encapsulation: ViewEncapsulation.None
3031
})
3132
export class KeyboardBacklightComponent implements OnInit {
3233
Object = Object;

0 commit comments

Comments
 (0)