Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature suggestion, add an option to display images vertically & help needed #20

Open
zztaouil opened this issue May 27, 2024 · 1 comment

Comments

@zztaouil
Copy link

I added an option called vertical which is by default false, if it's true I run this:

  let vertical = data.args["vertical"]

  if (vertical === true) {
    container.classList.remove("container");
    container.classList.add("v-container");
  }

The diff between container and v-container is flex-direction: column.

I need help with css, when displaying pictures vertically they don't use all the width. eg:

image

Any css wizard that can help me with this, if this feature is useful I can create a PR

Thank you @jrieke for this life saving project

@zztaouil
Copy link
Author

Figured it out, I edited .item in style.css

.container {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.v-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.item {
    /* width: 10rem; */
    /* width: fit-content; */
    margin: auto;
}

vertical=True

image

vertical=False

image

You can go ahead and close this issue, big thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant