Skip to content
Snippets Groups Projects
Commit 398b21af authored by jojohoch's avatar jojohoch
Browse files

[player] Fix display of selected marking buttons on iPad

The former outline was always displayed square on the iPad
parent 4e9e0648
No related branches found
No related tags found
No related merge requests found
...@@ -7,17 +7,23 @@ import { ...@@ -7,17 +7,23 @@ import {
template: ` template: `
<button type="button" <button type="button"
class="marking-button" class="marking-button"
[class.selected]=selected [style.border-color]="selected ? 'black' : color"
mat-mini-fab mat-mini-fab
[style.background-color]="color" [style.background-color]="color"
(mousedown)="$event.stopPropagation();" (mousedown)="$event.stopPropagation();"
(click)="selected = !selected; selectedChanged.emit({ selected, mode, color })"> (click)="selected = !selected; selectedChanged.emit({ selected, mode, color })">
<mat-icon *ngIf="mode === 'mark'">border_color</mat-icon> <mat-icon *ngIf="mode === 'mark'"
<mat-icon *ngIf="mode === 'delete'" svgIcon="rubber-black"></mat-icon> class="marking-icon">border_color
</mat-icon>
<mat-icon *ngIf="mode === 'delete'"
class="marking-icon"
svgIcon="rubber-black">
</mat-icon>
</button>`, </button>`,
styles: [ styles: [
'.marking-button {color: #333; margin-left: 5px; margin-top: 2px}', '.marking-button {color: #333; margin-left: 5px; margin-top: 2px; border: 2px solid;}',
'.selected {outline: 2px solid black}'] '.marking-icon {margin-top: -4px}'
]
}) })
export class MarkingButtonComponent { export class MarkingButtonComponent {
@Input() selected!: boolean; @Input() selected!: boolean;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment