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

ユーザー画面側で管理ツールバーが表示されているとき、一部imgの width= タグがユーザー側のcssのスタイルで上書きされてしまう #3836

Open
GUSSAN-BEEDAN opened this issue Sep 21, 2024 · 2 comments
Labels
Todo 実行確定タスク

Comments

@GUSSAN-BEEDAN
Copy link
Contributor

GUSSAN-BEEDAN commented Sep 21, 2024

概要

管理画面ログイン状態で、ユーザー画面側で管理ツールバーが表示されているとき、一部imgの width= タグがユーザー側のcssのスタイルで上書きされてしまうケースがあります。
toolbar.phpで使用しているBcBaser->getImg()のオプションの['width' => 8, 'height' => 11, ]でインラインとして出力される width="8" は、ユーザー(テーマ側)のcssのスタイル設定で例えば body img {style="width:100%;"} などとした場合、優先して機能せず、上書きされてしまう。

baserCMS version : 4.8.1

TODO

admin-second/

  • Baser/View/Elements/admin/toolbar.phpの81、96、108行目のBcBaser->getImg()のオプションの['width' => 8, 'height' => 11, ]を['style' => 'width:8px; height:11px', ]に変更。

admin-third/

  • app/webroot/theme/admin-third/Elements/admin/toolbar.phpの196、218行目のBcBaser->getImg()のオプションの['width' => 8, 'height' => 11, ]を['style' => 'width:8px; height:11px', ]に変更。

備考

5系でも再現するはず。

@ryuring
Copy link
Collaborator

ryuring commented Sep 23, 2024

@GUSSAN-BEEDAN こちらのコミットで、設定をCSS側に移動しました。改善できるか確認頂けますか?

@ryuring ryuring added the Todo 実行確定タスク label Sep 23, 2024
@GUSSAN-BEEDAN
Copy link
Contributor Author

5系について、Github最新の開発コミット版にて、改善されていることを確認いたしました。

GUSSAN-BEEDAN added a commit to GUSSAN-BEEDAN/basercms that referenced this issue Sep 24, 2024
GUSSAN-BEEDAN added a commit to GUSSAN-BEEDAN/basercms that referenced this issue Sep 24, 2024
GUSSAN-BEEDAN added a commit to GUSSAN-BEEDAN/basercms that referenced this issue Sep 24, 2024
toolbar.phpで使用しているBcBaser->getImg()のオプションの['width' => 8, 'height' => 11, ]を削除し、cssのスタイルに移行。
GUSSAN-BEEDAN added a commit to GUSSAN-BEEDAN/basercms that referenced this issue Sep 24, 2024
toolbar.phpで使用しているBcBaser->getImg()のオプションの['width' => 8, 'height' => 11, ]を削除し、cssのスタイルに移行。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Todo 実行確定タスク
Projects
None yet
Development

No branches or pull requests

2 participants