nextra icon indicating copy to clipboard operation
nextra copied to clipboard

“Bleed” is bleeding on larger screen sizes

Open yansusanto opened this issue 1 year ago • 5 comments

The <Bleed> component is bleeding too much on both edges with -mx-24 on screen resolution higher than 1600x900 (20" desktop), thus overlapping the sidebar on both sides.

May I suggest that we use -mx-12 instead?

Bleed-–-Nextra


Versions

"next": "^13.0.6",
"nextra": "^3.0.0-alpha.24",
"nextra-theme-docs": "^3.0.0-alpha.24",

yansusanto avatar Jun 08 '24 12:06 yansusanto

this was fixed in v3 https://github.com/shuding/nextra/pull/2866 https://nextra-v2-9c3amvff4-shud.vercel.app/docs/docs-theme/built-ins/bleed can you confirm in preview deployment?

dimaMachina avatar Jun 08 '24 12:06 dimaMachina

No it is not fixed yet here https://nextra-v2-9c3amvff4-shud.vercel.app/docs/docs-theme/built-ins/bleed.

Screenshot 2024-06-08 at 8 46 28 PM

yansusanto avatar Jun 08 '24 12:06 yansusanto

This is intentional behaviour

dimaMachina avatar Jun 08 '24 13:06 dimaMachina

Noted with thanks. Would it be better if we make the negative margin smaller so that it doesn't overlap the sidebar?

yansusanto avatar Jun 08 '24 13:06 yansusanto

You can customize your Bleed use -mx-6 like

      <div className="relative mt-6 -mx-6 sm:mx-0 rounded-none sm:rounded-xl border-y sm:border border-zinc-200 dark:border-zinc-800 overflow-hidden">
        {children}
      </div>

mengxi-ream avatar Sep 12 '24 21:09 mengxi-ream

closing since it was per design

dimaMachina avatar Oct 02 '24 20:10 dimaMachina