# DAWNバナー画像に関して

**URL:** <https://community.shopify.com/t/dawn/399469>\
**Category:** 技術的なQ＆A\
**Tags:** css\
**Created:** [March 10, 2025, 3:18am UTC](https://community.shopify.com/t/dawn/399469 "2025-03-10T03:18:41Z")\
**Posts on this page:** 1\
**Page:** 1

## AI-generated summary

ユーザーはShopifyのDawnテーマ（バージョン15.3.0）で画像バナーの表示品質に問題を抱えています。

**問題点:**
- 3000px以上の画像を使用してもPC表示では画像が荒く表示される
- スマホでは鮮明に表示される

**質問内容:**
- `image-banner.liquid`ファイル内のメディアクエリ（`max-width: 749px`と`min-width: 750px`）のサイズを変更すれば解決するか
- なぜデフォルトでmax-widthが749pxでmin-widthが750pxと、maxの方が1px小さいのか

**現状:**
コードスニペットが提示されていますが、具体的な解決策や回答はまだ投稿されていません。CSSのメディアクエリとアスペクト比の設定に関する技術的な質問として未解決の状態です。

<div class="post-metadata">

**Author:** ![r000016](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@r000016](https://community.shopify.com/u/r000016)\
**Post date:** [March 10, 2025, 3:18am UTC](https://community.shopify.com/t/dawn/399469/1 "2025-03-10T03:18:41Z")

</div>

テーマはDawn(バージョン15.3.0)使用しています。

画像バナーですが、3000px以上の画像を使用してもPCの表示の際、画像が荒く表示されてしまいます。  
（スマホは鮮明に表示されます）

この場合ですが、下記のような対応を行えばよいのでしょうか。

お手数ですがご確認よろしくお願いします

image-banner.liquid  
下記のminとmaxの部分を大きなサイズに変更する？？？  
また、なぜデフォルトだと  
max-width: 749pxでmin-width: 750pxとmaxの方が1小さいのでしょうか。

{%- if section.settings.image\_height == ‘adapt’ and section.settings.image != blank -%}  
{%- style -%}  
@media screen and (max-width: 749px) {  
#Banner-{{ section.id }}::before,  
#Banner-{{ section.id }} .banner\_\_media::before,  
#Banner-{{ section.id }}:not(.banner–mobile-bottom) .banner\_\_content::before {  
padding-bottom: {{ 1 | divided\_by: section.settings.image.aspect\_ratio | times: 100 }}%;  
content: ‘’;  
display: block;  
}  
}

@media screen and (min-width: 750px) {  
#Banner-{{ section.id }}::before,  
#Banner-{{ section.id }} .banner\_\_media::before {  
padding-bottom: {{ 1 | divided\_by: section.settings.image.aspect\_ratio | times: 100 }}%;  
content: ‘’;  
display: block;  
}
