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

Better display of media resources such as images and videos #4296

Open
aliuq opened this issue Jan 14, 2025 · 1 comment
Open

Better display of media resources such as images and videos #4296

aliuq opened this issue Jan 14, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@aliuq
Copy link

aliuq commented Jan 14, 2025

Describe the solution you'd like

image

Hope to use grid to better adapt to media resources

There is no special class used to identify a certain page, which causes the custom css selector to affect all pages

Type of feature

User Interface (UI)

Additional context

custom style, I can't make it only take effect on the home page and not the /resources page.

main > section > div > div > div:nth-child(2) > div > div:has(video),
main > section > div > div > div:nth-child(2) > div > div:has(img) {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 0.25rem;
}

main > section > div > div > div:nth-child(2) > div > div:has(video) > *,
main > section > div > div > div:nth-child(2) > div > div:has(img) > * {
  aspect-ratio: 1 / 1;
  border-radius: 0.5rem;
}

main > section > div > div > div:nth-child(2) > div > div:has(video) video {
  object-fit: cover;
}
@aliuq aliuq added the enhancement New feature or request label Jan 14, 2025
@aliuq
Copy link
Author

aliuq commented Jan 21, 2025

I hope the official can support better display media resources. I modified some using AI generation, but it is not suitable for production environment because I can't determine if there is anything affecting performance.

Image

Image

Image

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

1 participant