added UI for the media preview's description

This commit is contained in:
Nicolas Constant 2019-03-09 22:43:54 -05:00
parent c637b954b6
commit 17bdd7db42
No known key found for this signature in database
GPG Key ID: 1E9F677FB01A5688
2 changed files with 11 additions and 4 deletions

View File

@ -7,7 +7,7 @@
<button class="media__loaded--button" title="remove" (click)="removeMedia(m)">
<fa-icon [icon]="faTimes"></fa-icon>
</button>
<!-- <input></input> -->
<input class="media__loaded--description" autocomplete="off" placeholder="Describe for the visually impaired"/>
</div>
<img class="media__loaded--preview" src="{{m.attachment.preview_url}}" />
</div>

View File

@ -35,9 +35,7 @@
opacity: 100;
}
&--button {
display: block;
border:1px solid red;
&--button {
@include clearButton;
width: 10px;
height: 10px;
@ -47,6 +45,15 @@
color: white;
}
&--description {
position: absolute;
bottom:5px;
left: 5px;
width: calc(100% - 10px);
// background: black;
// color: white;
}
&--preview {
// display: block;