Skip to content

Commit

Permalink
fix: svg handling in safari (#395)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sm1lEE authored Nov 29, 2024
1 parent 05d6156 commit 0445c34
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion resources/views/components/elements/info-box.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@if ($logo)
{!! Statamic::tag('svg')->params([
'src' => $logo,
'class' => 'w-[12rem] mb-20'
'class' => 'max-w-[12rem] mb-20 max-h-[4.2rem] h-full'
]) !!}
@endif
<x-text :text="$text" />
Expand Down
4 changes: 2 additions & 2 deletions resources/views/components/layout-modules/quote.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ class="mt-32 flex gap-12 max-sm:flex-col sm:items-start sm:justify-between sm:ga
<a href="{{ $client_url }}"
class="w-[12rem] sm:flex sm:justify-end md:w-[16.6rem]">
<x-utilities.svg :svg="$client_logo"
class="max-h-[4.2rem] max-w-[12rem] md:max-h-[5.8rem] md:max-w-[16.6rem]" />
class="size-full max-h-[4.2rem] max-w-[12rem] md:max-h-[5.8rem] md:max-w-[16.6rem]" />
</a>
@else
<div class="w-[12rem] sm:flex sm:justify-end md:w-[16.6rem]">
<x-utilities.svg :svg="$client_logo"
class="max-h-[4.2rem] max-w-[12rem] md:max-h-[5.8rem] md:max-w-[16.6rem]" />
class="size-full max-h-[4.2rem] max-w-[12rem] md:max-h-[5.8rem] md:max-w-[16.6rem]" />
</div>
@endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<article class="bg-gradient-dark-900 border-highlight-3-600 border p-20 sm:p-32">
{!! Statamic::tag('svg')->params([
'src' => $entry['logo'],
'class' => 'max-w-[12rem] mb-20 max-h-[4.2rem]'
'class' => 'max-w-[12rem] mb-20 max-h-[4.2rem] h-full'
]) !!}

<h3 class="text-h5 mb-12 text-balance">
Expand Down

0 comments on commit 0445c34

Please sign in to comment.