mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 09:46:49 +00:00
Merge pull request #600 from pixelfed/frontend-ui-refactor
Frontend ui refactor
This commit is contained in:
commit
a111cf7feb
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ class AvatarController extends Controller
|
|||
$path = $this->buildPath($id);
|
||||
$dir = storage_path('app/'.$path);
|
||||
$this->checkDir($dir);
|
||||
$name = 'avatar.'.$file->guessExtension();
|
||||
$name = str_random(20).'_avatar.'.$file->guessExtension();
|
||||
$res = ['root' => 'storage/app/'.$path, 'name' => $name, 'storage' => $path];
|
||||
|
||||
return $res;
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
<input type="file" name="media" class="d-none file-input" multiple="">
|
||||
<div class="caption d-none">
|
||||
<div class="form-group mb-0">
|
||||
<input type="text" class="form-control input-elevated font-weight-bold" placeholder="Add an optional caption">
|
||||
<textarea class="form-control input-elevated font-weight-bold" placeholder="Add an optional caption"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="options"></div>
|
||||
|
@ -470,7 +470,7 @@ $(document).on('click', '#create', function(e) {
|
|||
$('.composeLoader').removeClass('d-none');
|
||||
let data = {
|
||||
media: pixelfed.uploader.meta,
|
||||
caption: $('.caption input').val(),
|
||||
caption: $('.caption textarea').val(),
|
||||
visibility: pixelfed.uploader.visibility,
|
||||
};
|
||||
axios.post('/api/local/status/compose', data)
|
||||
|
|
Loading…
Reference in a new issue