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

Add to container CSS #258

Closed
Scalee opened this issue Jan 15, 2024 · 4 comments · Fixed by #272
Closed

Add to container CSS #258

Scalee opened this issue Jan 15, 2024 · 4 comments · Fixed by #272
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Scalee
Copy link

Scalee commented Jan 15, 2024

How can I add to the container css?
The documents refer to src/styles.ts but that file doesn't exist anymore.

I would like to add flex-wrap: wrap; to the parent container.

Thanks

@mikhail-vl mikhail-vl self-assigned this Jan 16, 2024
@mikhail-vl mikhail-vl added the question Further information is requested label Jan 16, 2024
@mikhail-vl
Copy link
Member

@Scalee It's described in the documentation: https://volkovlabs.io/plugins/volkovlabs-dynamictext-panel/styles/#padding-and-margins

Use for the parent style:

& {
  padding: 0;
  margin: 0;
}

@Scalee
Copy link
Author

Scalee commented Jan 16, 2024

@Scalee It's described in the documentation: https://volkovlabs.io/plugins/volkovlabs-dynamictext-panel/styles/#padding-and-margins

Use for the parent style:

& {
  padding: 0;
  margin: 0;
}

Thanks for you reply. The & style seems to apply to every row container. What I am looking for is one level higher, the container that wraps all the rows so I can add flex-wrap: wrap;

@mikhail-vl mikhail-vl reopened this Jan 17, 2024
@mikhail-vl
Copy link
Member

@asimonok Any ideas?

@asimonok
Copy link
Collaborator

Workaround is to add the following to after render code.

context.element.parentNode.classList.add('yourClass')

But the more appropriate way is to implement static class name for rows container which we will add to the upcoming release.

@asimonok asimonok added enhancement New feature or request and removed question Further information is requested labels Jan 17, 2024
@mikhail-vl mikhail-vl added question Further information is requested and removed enhancement New feature or request labels Jan 17, 2024
@mikhail-vl mikhail-vl added enhancement New feature or request and removed question Further information is requested labels Feb 26, 2024
@mikhail-vl mikhail-vl added this to the Version 4.4.0 milestone Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants