0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-17 23:11:29 -05:00
astro/packages
Matt Kane e4a9c35c6a
feat: add responsive image component (#12381)
* feat: add experimental responsive images config option

* Apply suggestions from code review

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>

* Update config types

* Move config into `images`

* Move jsdocs

* wip: responsive image component

* Improve srcset logic

* Improve fixture

* Lock

* Update styling

* Fix style prop handling

* Update test (there's an extra style for images now)

* Safely access the src props

* Remove unused export

* Handle priority images

* Consolidate styles

* Update tests

* Comment

* Refactor srcset

* Avoid dupes of original image

* Calculate missing dimensions

* Bugfixes

* Add tests

* Fix test

* Correct order

* Lint

* Fix fspath

* Update test

* Fix test

* Conditional component per flag

* Fix class concatenation

* Remove logger

* Rename helper

* Add comments

* Format

* Fix markdoc tests

* Add test for style tag

---------

Co-authored-by: Sarah Rainsberger <sarah@rainsberger.ca>
2024-11-11 11:45:59 +00:00
..
astro feat: add responsive image component (#12381) 2024-11-11 11:45:59 +00:00
astro-prism fix(deps): update all non-major dependencies (#12316) 2024-10-28 22:00:15 +08:00
astro-rss [ci] release (#12234) 2024-10-15 19:10:48 +02:00
create-astro [ci] release (beta) (#12370) 2024-11-06 23:47:57 +08:00
db Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
integrations feat: add responsive image component (#12381) 2024-11-11 11:45:59 +00:00
internal-helpers Remove unused code in internal scripts (#11769) 2024-08-20 18:25:04 +08:00
markdown/remark Merge branch 'main' into next 2024-10-31 16:16:00 +08:00
studio Update to Vite 6.0.0-beta.6 (#12323) 2024-11-06 22:51:55 +08:00
telemetry fix(deps): update all non-major dependencies (#12366) 2024-11-06 21:47:42 +08:00
underscore-redirects [ci] release (beta) (#12012) 2024-09-17 12:23:49 +02:00
upgrade chore: move lint rules to Biome (#12145) 2024-10-08 10:12:40 +01:00