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

FilePond:【styleItemPanelAspectRatio】指定追加 #5626

Merged
merged 1 commit into from
Aug 25, 2022

Conversation

riki-develop
Copy link
Contributor

@riki-develop riki-develop commented Aug 25, 2022

概要(Overview・Refs Issue)

商品登録画面で縦サイズが600以下の画像を登録するとレイアウトが崩れる #5602

方針(Policy)

プラグイン【FilePond】→「先頭にある画像の高さを基準に親要素の高さが可変する」仕様と判明、
同じ様な不具合を経験されている方が数名いらっしゃいました。

▼参考
pqina/vue-filepond#94

実装に関する補足(Appendix)

【styleItemPanelAspectRatio】の指定を加える事により解決。
アスペクト比は【16 : 9 = 1 : 0.5625】としています。

テスト(Test)

【/admin/product/product/new】にて動作確認

▼開発環境(M1 Mac:Docker)

EC-CUBE:4.2.0-beta2
DB:MySQL 5.7.39
Apache/2.4.54 (Debian)
PHP:7.4.30

マイナーバージョン互換性保持のための制限事項チェックリスト

  • 既存機能の仕様変更はありません
  • フックポイントの呼び出しタイミングの変更はありません
  • フックポイントのパラメータの削除・データ型の変更はありません
  • twigファイルに渡しているパラメータの削除・データ型の変更はありません
  • Serviceクラスの公開関数の、引数の削除・データ型の変更はありません
  • 入出力ファイル(CSVなど)のフォーマット変更はありません

レビュワー確認項目

  • 動作確認
  • コードレビュー
  • E2E/Unit テスト確認(テストの追加・変更が必要かどうか)
  • 互換性が保持されているか
  • セキュリティ上の問題がないか
    • 権限を超えた操作が可能にならないか
    • 不要なファイルアップロードがないか
    • 外部へ公開されるファイルや機能の追加ではないか
    • テンプレートでのエスケープ漏れがないか

@chihiro-adachi chihiro-adachi added this to the 4.2.0 milestone Aug 25, 2022
@chihiro-adachi
Copy link
Contributor

@riki-develop
ありがとうございます。修正確認しました

@codecov-commenter
Copy link

Codecov Report

Merging #5626 (9f1af03) into 4.2 (412fbe8) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##                4.2    #5626      +/-   ##
============================================
- Coverage     78.84%   78.82%   -0.03%     
- Complexity     6259     6260       +1     
============================================
  Files           469      469              
  Lines         21001    21009       +8     
============================================
+ Hits          16559    16560       +1     
- Misses         4442     4449       +7     
Flag Coverage Δ
E2E 64.75% <ø> (-0.04%) ⬇️
Unit 77.53% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...Eccube/Controller/Admin/Content/FileController.php 84.80% <0.00%> (-2.04%) ⬇️
...ontroller/Admin/Product/ProductClassController.php 90.28% <0.00%> (-0.58%) ⬇️
src/Eccube/Form/Type/Admin/NewsType.php 90.90% <0.00%> (ø)
src/Eccube/Security/Core/User/MemberProvider.php 92.30% <0.00%> (ø)
src/Eccube/Security/Core/User/CustomerProvider.php 92.30% <0.00%> (ø)
src/Eccube/Form/Type/Admin/BlockType.php 95.34% <0.00%> (+0.11%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@chihiro-adachi chihiro-adachi merged commit f2d33ae into EC-CUBE:4.2 Aug 25, 2022
@chihiro-adachi
Copy link
Contributor

@riki-develop ありがとうございます。マージしました。

@riki-develop
Copy link
Contributor Author

ありがとうございます。

@chihiro-adachi chihiro-adachi added bugbounty2022:pr:entry バグバウンティ2022 バグ登録 PR登録 bugbounty2022:pr:recognition バグバウンティ2022 バグ登録 PR取込 labels Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug:Low bugbounty2022:pr:entry バグバウンティ2022 バグ登録 PR登録 bugbounty2022:pr:recognition バグバウンティ2022 バグ登録 PR取込 Status: ready-for-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants