Fixed spacing when share button is disabled

This commit is contained in:
Julian Prieber 2023-11-23 15:55:12 +01:00
parent e201b4cbb1
commit d928b19d6a
1 changed files with 6 additions and 6 deletions

View File

@ -208,12 +208,13 @@ if($customBackgroundExists == true){
@else @else
<?php $ShowShrBtn = 'true'; ?> <?php $ShowShrBtn = 'true'; ?>
@endif @endif
@if($ShowShrBtn == 'true' and UserData::getData($userinfo->id, 'disable-sharebtn') != "true") <?php if($ShowShrBtn == 'true' && UserData::getData($userinfo->id, 'disable-sharebtn') != "true"){$DisplayShowShrBtn = true;}else{$DisplayShowShrBtn = false;} ?>
<script>{!! file_get_contents(base_path("assets/linkstack/js/jquery.min.js")) !!}</script> @if($DisplayShowShrBtn == true)<script>{!! file_get_contents(base_path("assets/linkstack/js/jquery.min.js")) !!}</script>@endif
<div align="right" class="sharediv"> <div align="right" @if($DisplayShowShrBtn == false) style="visibility:hidden" @endif class="sharediv">
<div> <div>
<span class="sharebutton button-hover icon-hover share-button" data-share="{{url()->current()}}" tabindex="0" role="button" aria-label="{{__('messages.Share this page')}}"> <span class="sharebutton button-hover icon-hover share-button" data-share="{{url()->current()}}" tabindex="0" role="button" aria-label="{{__('messages.Share this page')}}">
<i style="color: black;" class="fa-solid fa-share sharebutton-img share-icon hvr-icon"></i> <i style="color: black;" class="fa-solid fa-share sharebutton-img share-icon hvr-icon"></i>
@ -223,7 +224,7 @@ if($customBackgroundExists == true){
</div> </div>
<span class="copy-icon" tabindex="0" role="button" aria-label="{{__('messages.Copy URL to clipboard')}}"> <span class="copy-icon" tabindex="0" role="button" aria-label="{{__('messages.Copy URL to clipboard')}}">
</span> </span>
@if($DisplayShowShrBtn == true)
<script> <script>
const shareButtons = document.querySelectorAll('.share-button'); const shareButtons = document.querySelectorAll('.share-button');
shareButtons.forEach(button => { shareButtons.forEach(button => {
@ -247,9 +248,8 @@ if($customBackgroundExists == true){
}); });
}); });
</script> </script>
@endif @endif
<?php ////end share button//// ?> <?php ////end share button//// ?>
<div class="container"> <div class="container">