Skip to content

Commit 57f6c30

Browse files
committed
fullscreen edit mode if small display
1 parent 956a8e9 commit 57f6c30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

luci-app-neko/htdocs/nekoclash/manager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function create_modal($path) {
3838
$file_name = explode(".", $file_info[4]);
3939
$out_modal = "";
4040
$out_modal .= "<div class=\"modal fade\" data-bs-keyboard=\"false\" id=\"".$file_dir."_".$file_name[0]."\" tabindex=\"1\" aria-labelledby=\"modal_".$file_dir."_".$file_name[0]."\" aria-hidden=\"true\">\n";
41-
$out_modal .= " <div class=\"modal-dialog modal-xl\">\n";
41+
$out_modal .= " <div class=\"modal-dialog modal-xl modal-fullscreen-md-down\">\n";
4242
$out_modal .= " <div class=\"modal-content\">\n";
4343
$out_modal .= " <div class=\"modal-header\">\n";
4444
$out_modal .= " <h5 class=\"modal-title\" id=\"modal_".$file_dir."_".$file_name[0]."\">File Information</h5>\n";
@@ -49,7 +49,7 @@ function create_modal($path) {
4949
$out_modal .= " <a>Name : ".$file_info[4]."</a></br>\n";
5050
$out_modal .= " <a>File Size : ".formatSize(filesize($file))."</a></br>\n";
5151
$out_modal .= " <a>Last Modified : ".date('Y-m-d H:i:s', ((7*3600)+filemtime($file)))."</a></br>\n";
52-
$out_modal .= " <div class=\"col input-group mb-3 justify-content-md-center\">\n";
52+
$out_modal .= " <div class=\"col input-group justify-content-md-center\">\n";
5353
$out_modal .= " <textarea class=\"form-control\" name=\"form_".$file_dir."_".$file_name[0]."\" rows=\"15\">".shell_exec("cat $file")."</textarea>\n";
5454
$out_modal .= " </div>\n";
5555
$out_modal .= " </div>\n";

0 commit comments

Comments
 (0)