react-brackets icon indicating copy to clipboard operation
react-brackets copied to clipboard

Slide bracket horizontally like demo on mobile

Open ElijahPrince73 opened this issue 3 years ago • 3 comments

I want to be able to scroll horizontally on mobile and not change the view to a column layout

How can I do that Screen Shot 2022-04-20 at 5 34 56 PM

`const CustomSeed = ({ seed, breakpoint, roundIndex, seedIndex }) => ( <Seed mobileBreakpoint={breakpoint}> <SeedItem className="border border-grey-3 bg-black">

<SeedTeam>{seed.teams[0]?.name || 'NO TEAM '}</SeedTeam> <SeedTeam>{seed.teams[1]?.name || 'NO TEAM '}</SeedTeam>
</SeedItem> </Seed> );

const Component = () => ( <Layout> <Bracket rounds={rounds} roundTitleComponent={(title) => ( <div className="text-2xl text-center font-bold text-white">{title} )} renderSeedComponent={CustomSeed} swipeableProps={{ enableMouseEvents: true, animateHeight: true, style: { padding: '0 50px 0 0', }, }} /> </Layout> );`

ElijahPrince73 avatar Apr 21 '22 00:04 ElijahPrince73

same issue did you find a solution yet ?

MahmoudTarekAli avatar Oct 22 '22 23:10 MahmoudTarekAli

Have both of you been successful in getting this to run on mobile?

MWTuttle avatar Jul 12 '23 08:07 MWTuttle

No ended up using a different library called @g-loot/react-tournament-brackets

MahmoudTarekAli avatar Jul 12 '23 11:07 MahmoudTarekAli