stranska pasova na trdno mero 160x600: responsive vertical si je visino racunal sam in se raztegoval
This commit is contained in:
@@ -316,18 +316,21 @@ function SideRail({ side, offset }: { side: "left" | "right"; offset: number })
|
||||
if (filled === false) return null;
|
||||
return (
|
||||
<div
|
||||
className="hidden 2xl:flex fixed top-0 bottom-0 w-[160px] min-[1700px]:w-[300px] z-10 items-center justify-center pointer-events-none"
|
||||
className="hidden 2xl:flex fixed top-0 bottom-0 w-[160px] z-10 items-center justify-center pointer-events-none"
|
||||
style={side === "left"
|
||||
? { left: `calc(50% - ${offset}px - var(--rail-w))` }
|
||||
: { right: `calc(50% - ${offset}px - var(--rail-w))` }}
|
||||
data-testid={`ad-${side}-sidebar`}
|
||||
>
|
||||
<div className="pointer-events-auto w-full">
|
||||
{/* Trdna mera 160x600 (skyscraper). Prej je bil pas na sirokih zaslonih
|
||||
300 px in z responsive vertical si je Google visino racunal sam,
|
||||
zato se je raztegoval cez pol zaslona. */}
|
||||
<AdSense
|
||||
slot="2398082838"
|
||||
format="vertical"
|
||||
format=""
|
||||
responsive={false}
|
||||
style={{ display: "block", width: "100%", height: "600px" }}
|
||||
style={{ display: "inline-block", width: "160px", height: "600px" }}
|
||||
onAdStatus={setFilled}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user