OS:debian11
NucleusCMS-3.8dev
ブラウザー:
Firefox ver115.3.1esr (64 ビット)
Google Chrome ver 117.0.5938.149(Official Build)(64 ビット)
パソコンでアイテムの追加や編集をクリックするとwindowサイズが全画面の9割で表示される。
大画面ディスプレーではtexetareaも必要以上に大きいので適度な大きさで開くように修正する。
修正ファイル:
yourcms/nucleus/libs/ITEMACTIONS.php
yourcms/nucleus/libs/include/bookmarklet-add.template
yourcms/nucleus/libs/include/bookmarklet-edit.template
1)windowサイズの修正
アイテムの編集
ITEMACTIONS.phpの599行目:
public function parse_editpopupcode()内の
width='+window.parent.screen.width*0.9を
width='+window.parent.screen.width*0.6に変更。
2)<textareaのサイズ修正
修正ファイル:
yourcms/nucleus/libs/include/bookmarklet-add.template
yourcms/nucleus/libs/include/bookmarklet-edit.template
アイテムの追加
bookmarklet-add.templateの<textarea にstyle="width:サイズ"を挿入する。
<textarea {%jsinput(body)%} style="width:500px; height:250px;" cols="80px" rows="20px" tabindex="20">{%contents(body)%}</textarea>
アイテムの編集
bookmarklet-edit.templateの<textarea にstyle="width:サイズ"を挿入する。
textarea にstyle="サイズを挿入する。
<textarea {%jsinput(body)%} style="width:500px; height:250px;" cols="80px" rows="20px" tabindex="20">{%contents(body)%}</textarea>
OS:debian11
ブラウザー:Firefox ver115.3.1esr (64 ビット)、Google Chrome ver 117.0.5938.149(Official Build) (64 ビット)
ブラザーの表示幅が720未満のとき、サイドバーがアイテム域(記事)の下に表示されるため、サイドバー内のメニューが操作し難いので、サイドバーは画面トップに表示するように改善する。
メンテナンスファイル:your_nucleus/skins/default/menu.js
メンテナンス箇所:104行
if (screen.width < 720) {
↓
if (window.innerWidth > 720) { に置き換える。