Skip to content

Position toolbar below the inline carousel #165

Discussion options

You must be logged in to vote

Hi!

Currently the toolbar is rendered relative to the carousel. If you want to position it at the bottom of the carousel you can tweak its position with the following css.

export default function App() {
    return (
        <Lightbox
            slides={slides}
            plugins={[Inline, Download, Fullscreen, Slideshow]}
            inline={{ style: { width: 400, height: 300, margin: "0 auto" } }}
            carousel={{ padding: 0, spacing: 0, imageFit: "cover" }}
        />
    );
}
.yarl__toolbar {
    top: unset;
    bottom: 0;
}

However, positioning the toolbar below the carousel is not supported out of the box. You'd need to add an extra <div> wrapper to achieve the desired lay…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@stevenfeltner
Comment options

@igordanchenko
Comment options

@igordanchenko
Comment options

Answer selected by igordanchenko
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants