stranska pasova na trdno mero 160x600: responsive vertical si je visino racunal sam in se raztegoval

This commit is contained in:
2026-08-31 17:08:05 +02:00
parent 56ff5712b4
commit c847f526d3
+6 -3
View File
@@ -316,18 +316,21 @@ function SideRail({ side, offset }: { side: "left" | "right"; offset: number })
if (filled === false) return null; if (filled === false) return null;
return ( return (
<div <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" style={side === "left"
? { left: `calc(50% - ${offset}px - var(--rail-w))` } ? { left: `calc(50% - ${offset}px - var(--rail-w))` }
: { right: `calc(50% - ${offset}px - var(--rail-w))` }} : { right: `calc(50% - ${offset}px - var(--rail-w))` }}
data-testid={`ad-${side}-sidebar`} data-testid={`ad-${side}-sidebar`}
> >
<div className="pointer-events-auto w-full"> <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 <AdSense
slot="2398082838" slot="2398082838"
format="vertical" format=""
responsive={false} responsive={false}
style={{ display: "block", width: "100%", height: "600px" }} style={{ display: "inline-block", width: "160px", height: "600px" }}
onAdStatus={setFilled} onAdStatus={setFilled}
/> />
</div> </div>