Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
remove unused meta, fix broken meta keys, adjust thumbnail padding.
  • Loading branch information
bayareawebpro committed Aug 12, 2021
1 parent 2fe72df commit 0dc43a6
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion dist/js/field.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/js/field.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/js/components/media-field.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
<v-lazy-image
:src="preview"
:src-placeholder="$options.spinner"
class="shadow-md rounded m-2 block"
class="shadow-md rounded mb-4 block"
:style="{
width: 'auto',
height: 'auto',
Expand Down
12 changes: 6 additions & 6 deletions src/FeaturedMedia.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ class FeaturedMedia extends Field
public $meta = [
'index_width' => 100,
'index_height' => 100,
'detail_width' => 800,
'detail_height' => 400,
'attachment_width' => 600,
'attachment_height' => 400,
'form_width' => 800,
'form_height' => 600,
'detail_width' => 1600,
'detail_height' => 1200,
];

/**
Expand Down Expand Up @@ -60,8 +60,8 @@ public function sizeOnDetail(int $width,int $height): self
public function sizeOnForms(int $width,int $height): self
{
return $this->withMeta([
'detail_width' => $width,
'detail_height' => $height,
'form_width' => $width,
'form_height' => $height,
]);
}
}

0 comments on commit 0dc43a6

Please sign in to comment.