mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-25 03:16:01 +00:00
938a0679c0
Release Notes: - N/A --- We may only want to set the height of an image to limit the size and make the width adaptive. In HTML, we will only set width or height, and the other side will adapt and maintain the original image ratio. I changed this because I had a logo image that only to be limited in height, and then I found that setting the height of the `img` alone would not display correctly. I also tried to set `ObjectFit` in this Demo, but it seems that none of them can achieve the same effect as "After". ## Before <img width="809" alt="before 2024-09-18 164029" src="https://github.com/user-attachments/assets/7ba559ed-e53b-43e6-a072-93c8ba5b14ee"> ## After <img width="749" alt="after 2024-09-18 172003" src="https://github.com/user-attachments/assets/51ee2eba-76b3-400a-abbf-de0e9c4021e2"> |
||
---|---|---|
.. | ||
image | ||
svg | ||
animation.rs | ||
gif_viewer.rs | ||
hello_world.rs | ||
input.rs | ||
opacity.rs | ||
ownership_post.rs | ||
set_menus.rs | ||
shadow.rs | ||
text_wrapper.rs | ||
uniform_list.rs | ||
window_positioning.rs | ||
window_shadow.rs |