aider/_posts
Paul Gauthier 54aa208171 aider: Adjusted the video container's padding-bottom to maintain the original 1060x1080 aspect ratio.
# Aider chat conversation:

USER: but it's a 1060 wide by 1080 high video, not 16:9

ASSISTANT: You're right, the video dimensions are 1060x1080, which is not a 16:9 aspect ratio. To maintain the original aspect ratio of the video, we can calculate the padding-bottom percentage based on the video's height divided by its width. Here are the updated changes:

_posts/2024-05-02-browser.md
<source>
<<<<<<< SEARCH
<style>
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
=======
<style>
.video-container {
  position: relative;
  padding-bottom: 101.89%; /* 1080 / 1060 = 1.0189 */
  height: 0;
  overflow: hidden;
}

.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
</style>
>>>>>>> REPLACE
</source>

The change:

1. Update the `padding-bottom` value to `101.89%`, which is calculated by dividing the video's height (1080) by its width (1060) and multiplying by 100 to get a percentage.

This change will ensure that the responsive video container maintains the original aspect ratio of the 1060x1080 video.
2024-05-02 18:02:51 -07:00
..
2023-05-25-ctags.md Link more blog articles 2024-02-19 13:25:43 -08:00
2023-07-02-benchmarks.md Link more blog articles 2024-02-19 13:25:43 -08:00
2023-10-22-repomap.md Link more blog articles 2024-02-19 13:25:43 -08:00
2023-11-06-benchmarks-1106.md Added post symlink 2024-02-19 13:08:49 -08:00
2023-11-06-benchmarks-speed-1106.md layout 2024-02-19 14:49:23 -08:00
2023-12-21-unified-diffs.md Link more blog articles 2024-02-19 13:25:43 -08:00
2024-01-25-benchmarks-0125.md Link more blog articles 2024-02-19 13:25:43 -08:00
2024-03-08-claude-3.md Added --opus 2024-04-18 17:09:43 -07:00
2024-04-09-gpt-4-turbo.md copy 2024-04-09 17:13:12 -07:00
2024-05-02-browser.md aider: Adjusted the video container's padding-bottom to maintain the original 1060x1080 aspect ratio. 2024-05-02 18:02:51 -07:00