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

Text format and text wrapping for image titles #69

Open
groepl opened this issue Jun 3, 2024 · 1 comment
Open

Text format and text wrapping for image titles #69

groepl opened this issue Jun 3, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@groepl
Copy link

groepl commented Jun 3, 2024

image

It would be nice to be able to format the titles (file.name) below the images. No bold, no shadow, text normal or small, wrap text over different lines (not cut by ...).

Thank you for your amazing plugin. It's fun to use it. :-)

@tokenshift
Copy link
Owner

You can customize page-gallery styling by using CSS snippets. Example for removing/overriding the default style for "filename as the first/top displayed field":

.page-gallery__field[data-page-gallery-field-expression="file.name"]:first-child {
  font-weight: normal;
  text-shadow: none;
  white-space: normal;
}

I'll leave this ticket open as I think it makes sense to add an option for whether the filename field should be highlighted as is the default right now; but any more advanced or custom styling will still need CSS snippets rather than being built-in.

@tokenshift tokenshift added the enhancement New feature or request label Jun 17, 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

No branches or pull requests

2 participants