File tree Expand file tree Collapse file tree
resources/views/training/partials Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11@props ([
22 ' url' ,
33] )
4+ @php
5+ // Strip any fragment from stored URL for the "open in new tab" link.
6+ $tabUrl = \Illuminate \Support \Str:: before ($url , ' #' );
7+ // Adobe-style PDF open parameters: hide toolbar/side panes in many Chromium viewers.
8+ // Safari / iOS often ignore these; users can use "Open in new tab" for the native viewer.
9+ $embedSrc = $tabUrl . ' #toolbar=0&navpanes=0&scrollbar=1&view=FitH' ;
10+ @endphp
411<div class =" w-full max-w-full my-6 rounded-xl overflow-hidden border border-slate-200 bg-slate-100 shadow-sm" >
512 <iframe
613 title =" {{ __ (' Roadmap (PDF)' ) } }"
7- src =" {{ $url } }"
8- class =" w-full border-0 block"
9- style =" height : min (75 vh , 880 px ); min-height : 480 px ;"
14+ src =" {{ $embedSrc } }"
15+ class =" w-full border-0 block max-w-full "
16+ style =" width : 100 % ; height : min (85 dvh , 920 px ); min-height : min ( 60 dvh , 520 px ) ;"
1017 loading =" lazy"
18+ referrerpolicy =" no-referrer-when-downgrade"
1119 ></iframe >
1220</div >
1321<p class =" text-sm mt-2 mb-0 text-[#333E48]" >
14- <a href =" {{ $url } }" target =" _blank" rel =" noopener noreferrer" class =" text-dark-blue underline font-medium" >
22+ <a href =" {{ $tabUrl } }" target =" _blank" rel =" noopener noreferrer" class =" text-dark-blue underline font-medium" >
1523 {{ __ (' Open roadmap PDF in a new tab' ) } }
1624 </a >
1725 — {{ __ (' if the preview does not load in your browser.' ) } }
You can’t perform that action at this time.
0 commit comments