Repository navigation
管理画面のボタンの、隠れたアイコンを整理する - #878
Merged
Merged
Conversation
QuickManager が編集画面に出す保存・キャンセルのボタンは、 media/style/<テーマ>/images/icons/save.png・stop.png を指していたが、 どのテーマにも images/icons が無く、毎回 404 になっていた。 どのテーマも .actionButtons a img を display: none で隠しているので、 画像の場所を直すのではなく、<img> を付けないようにする。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
管理画面のボタン(.actionButtons の中のリンク)の <img> は、
どのテーマも .actionButtons a img { display: none; } で隠していて、
画面には出ていなかった。古いデザインの名残なので、まとめて外す。
- 本体のボタンの <img> を外す(各画面、manager()->ab()、
リソースの編集画面のボタン、ユーザーの編集画面の保存ボタン)
- ab() に渡していた 'icon' と、使われなくなった変数・プレースホルダーを削除
- 7 テーマの .actionButtons a img { display: none; } を削除
- アイコンだけのボタン(リセット・表示切替)は残し、隠す規則に逆らうための
style="display:inline;" を外す
外部のアドオンのボタンに <img> があると、今後は表示される。
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
互換の変更: テーマの CSS から
.actionButtons a img { display: none; }を外した。外部のアドオンが、管理画面のボタン(.actionButtonsの中のリンク)に<img>を入れていると、今後はそのアイコンが表示される(今のテーマにはimages/icons/が無いので、media/style/<テーマ>/images/icons/を指すものは壊れた画像になる)。アドオンの側で<img>を外す。管理画面のボタンのアイコンは、どのテーマも CSS で隠していて、画面には出ていなかった。古いデザインの名残なので、本体のボタンから
<img>を外し、隠すための CSS も外す。きっかけは #859 の確認中に見つけた、QuickManager の編集画面のボタンの 404。
原因(QuickManager の 404)
assets/plugins/qm/inc/on_doc_form_prerender.phpがmedia/style/<テーマ>/images/icons/save.png・stop.pngを指していたが、どのテーマにもimages/icons/が無く、編集画面を開くたびに 2 件の 404 になっていた。画像は CSS で隠されていて、場所を直しても表示はされない。変更内容
<img>を外した(ボタンは今までどおり文字で出る。見た目は変わらない)manager()->ab():<img>を出さない。呼び出し側が渡していた'icon'も削除(渡されても無視するだけなので、外部のアドオンが渡しても壊れない)mutate_content/action_buttons.php)、ユーザーの編集画面の保存ボタンresources_list.static.phpの sprintf の引数、files.dynamic.phpの[+image+]など、bkmanager.static.phpの$misc_path、style_icons_cancel)style.cssから.actionButtons a img { display: none; }を削除style="display:inline;"は外した.actionButtons imgの位置・透明度の指定は、アイコンだけのボタンが使うので残した。何が変わるか(リリース記事の候補)
<img>があると、表示されるようになる。必要なければアドオンの側で外す確認手順
Docker の検証環境(php 8.4 / mariadb 11、サンプルサイトあり)で、Playwright を使って確かめた。
.actionButtonsのリンクの中の<img>を数える<img>が多数php -l(変更した PHP 48 ファイル)備考
Cannot read properties of null (reading 'form')と、a=84(リソースの選択)のCannot read properties of null (reading 'chkBoxArray')が main でも出る。別件🤖 Generated with Claude Code