Skip to content

Commit 5eda20d

Browse files
committed
feat(trimtransparentborder): changed to trim only top / bottom to ensure marker remains square
1 parent 693015a commit 5eda20d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/Actions/Image/TrimTransparentBorder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ class TrimTransparentBorder
1111

1212
public function handle(Image $img)
1313
{
14-
$img->trim('transparent', ['top', 'bottom', 'left', 'right'], 1);
14+
$img->trim('transparent', ['top', 'bottom'], 1);
1515
}
1616
}

resources/views/docs/integrations/mapbox.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
2929
var markerElement = document.createElement('div');
3030
markerElement.style.backgroundImage =
31-
"url('{{ config('app.url') }}/api/v1/font-awesome/v5/pin?icon=fa-star-solid&size=50&hoffset=0&voffset=-1')";
31+
"url('{{ config('app.url') }}/api/v2/font-awesome/v5/pin?icon=fa-star-solid&size=50&hoffset=0&voffset=-1')";
3232
markerElement.style.width = '50px';
3333
markerElement.style.height = '50px';
3434
@@ -39,7 +39,7 @@
3939
.addTo(map);
4040
</script>
4141
<pre>var markerElement = document.createElement('div');
42-
markerElement.style.backgroundImage = "url('{{ config('app.url') }}/api/v1/font-awesome/v5/pin?icon=fa-star-solid&size=50&hoffset=0&voffset=-1')";
42+
markerElement.style.backgroundImage = "url('{{ config('app.url') }}/api/v2/font-awesome/v5/pin?icon=fa-star-solid&size=50&hoffset=0&voffset=-1')";
4343
markerElement.style.width = '50px';
4444
markerElement.style.height = '50px';
4545

0 commit comments

Comments
 (0)