Skip to content

Commit

Permalink
fix QR code (#2177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Jan 7, 2024
1 parent 5b2625c commit 0fc1f43
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/View/Components/Gallery/Album/SharingLinks.php
Expand Up @@ -21,7 +21,7 @@ public function __construct(AbstractAlbum $album)
$raw_title = rawurlencode($album->title);
$this->twitter_link = 'https://twitter.com/share?url=' . $this->rawUrl;
$this->facebook_link = 'https://www.facebook.com/sharer.php?u=' . $this->rawUrl . '?t=' . $raw_title;
$this->mailTo_link = 'mailto:?subject=' . $raw_title . '&' . $this->rawUrl;
$this->mailTo_link = 'mailto:?subject=' . $raw_title . '&body=' . $this->rawUrl;
}

public function render(): View
Expand Down
Expand Up @@ -20,7 +20,7 @@
" >
<x-icons.iconic class="w-10 h-10" icon="link-intact" />
</a>
<x-icons.iconic class="w-10 h-10" icon="grid-two-up" x-on:click="qrCodeOpen = true; setQrCode('{{ $rawUrl }}');" />
<x-icons.iconic class="w-10 h-10" icon="grid-two-up" x-on:click="qrCodeOpen = true; setQrCode('{{ $url }}');" />
</div>
<div class="flex flex-wrap p-9 gap-5 justify-center align-top text-text-main-0/80" x-show="qrCodeOpen">
<canvas id="canvas"></canvas>
Expand Down

0 comments on commit 0fc1f43

Please sign in to comment.