diff options
| author | Roger Braun <roger@rogerbraun.net> | 2017-02-21 15:24:35 +0100 |
|---|---|---|
| committer | Roger Braun <roger@rogerbraun.net> | 2017-02-21 15:24:35 +0100 |
| commit | 40fe40d96b2a4dadf706637954b529ee80af75a4 (patch) | |
| tree | e5f07b28cacccc1cecf528618fd42188155335aa | |
| parent | 137a7e643d22be6461f79cc134df1e459c576228 (diff) | |
Better attachment removal styling.
| -rw-r--r-- | src/components/post_status_form/post_status_form.vue | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/components/post_status_form/post_status_form.vue b/src/components/post_status_form/post_status_form.vue index 1bad41c7..ebb92b26 100644 --- a/src/components/post_status_form/post_status_form.vue +++ b/src/components/post_status_form/post_status_form.vue @@ -6,11 +6,11 @@ </div> <div class="attachments"> <div class="attachment" v-for="file in newStatus.files"> + <i class="fa icon-cancel" @click="removeMediaFile(file)"></i> <img class="thumbnail media-upload" :src="file.image" v-if="type(file) === 'image'"></img> <video v-if="type(file) === 'video'" :src="file.image" controls></video> <audio v-if="type(file) === 'audio'" :src="file.image" controls></audio> <a v-if="type(file) === 'unknown'" :href="file.image">{{file.url}}</a> - <i class="fa icon-cancel" @click="removeMediaFile(file)"></i> </div> </div> <div class='form-bottom'> @@ -52,6 +52,15 @@ .attachments { padding: 0.5em; + + i { + position: absolute; + margin: 10px; + padding: 5px; + background: rgba(230,230,230,0.6); + border-radius: 0.5em; + font-weight: bold; + } } form { |
