mirror of https://github.com/Chocobozzz/PeerTube
Add tooltip to maximize button and remove grey background
parent
63703d8cee
commit
01d0147ef5
|
@ -24,11 +24,11 @@
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<my-button
|
<my-button
|
||||||
*ngIf="!isMaximized" icon="fullscreen" (click)="onMaximizeClick()"
|
*ngIf="!isMaximized" [title]="maximizeInText" className="maximize-button" icon="fullscreen" (click)="onMaximizeClick()"
|
||||||
></my-button>
|
></my-button>
|
||||||
|
|
||||||
<my-button
|
<my-button
|
||||||
*ngIf="isMaximized" icon="exit-fullscreen" (click)="onMaximizeClick()"
|
*ngIf="isMaximized" [title]="maximizeOutText" className="maximize-button" icon="exit-fullscreen" (click)="onMaximizeClick()"
|
||||||
></my-button>
|
></my-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -42,8 +42,20 @@ $input-border-radius: 3px;
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grey-button {
|
.maximize-button {
|
||||||
padding: 0 7px 0 12px;
|
padding: 0 7px;
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
stroke: var(--mainForegroundColor);
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover, &:active {
|
||||||
|
svg {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -77,7 +89,7 @@ $input-border-radius: 3px;
|
||||||
opacity: .7;
|
opacity: .7;
|
||||||
}
|
}
|
||||||
|
|
||||||
.grey-button {
|
.maximize-button {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,9 @@ export class MarkdownTextareaComponent implements ControlValueAccessor, OnInit {
|
||||||
previewHTML = ''
|
previewHTML = ''
|
||||||
isMaximized = false
|
isMaximized = false
|
||||||
|
|
||||||
|
maximizeInText = $localize`Maximize editor`
|
||||||
|
maximizeOutText = $localize`Exit maximized editor`
|
||||||
|
|
||||||
private contentChanged = new Subject<string>()
|
private contentChanged = new Subject<string>()
|
||||||
private scrollPosition: [number, number]
|
private scrollPosition: [number, number]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue