Make file input look nicer

This commit is contained in:
Stasiek Michalski 2018-06-03 14:08:38 +02:00 committed by GitHub
parent 785d6af99f
commit 580d0d8a96
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,9 +13,12 @@
<div class="card-body" id="statusForm">
<form method="post" action="/timeline" enctype="multipart/form-data">
@csrf
<div class="form-group">
<label class="font-weight-bold text-muted small">Upload Image</label>
<input type="file" class="form-control-file" name="photo" accept="image/*">
<div class="custom-file">
<label class="custom-file-label">
<span class="icon-picture mr-1"></span>
Upload Image
</label>
<input type="file" class="custom-file-input" name="photo" accept="image/*">
<small class="form-text text-muted">
Max Size: @maxFileSize(). Supported formats: jpeg, png, gif, bmp.
</small>