edit dashboard and text widgets
This commit is contained in:
@@ -1,8 +1,30 @@
|
||||
<style>
|
||||
:host {
|
||||
display: block;
|
||||
margin-top: 1em;
|
||||
background-color: aliceblue;
|
||||
}
|
||||
.text-widget {
|
||||
position: relative;
|
||||
padding: 1em 0;
|
||||
}
|
||||
.text-widget:hover {
|
||||
outline: solid 1px black;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.editable-hovered {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
.text-widget .editable-hovered {
|
||||
visibility: hidden;
|
||||
}
|
||||
.text-widget:hover .editable-hovered {
|
||||
visibility: visible;
|
||||
}
|
||||
</style>
|
||||
<p *ngFor="let line of lines()">{{line}}</p>
|
||||
<div class="text-widget">
|
||||
<button mat-icon-button (click)="edit()" class="editable-hovered"><img src="/assets/img/edit-outline.svg"/></button>
|
||||
<p *ngFor="let line of lines()">{{line}}</p>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user