Add cdr column_overflow default setting

This commit is contained in:
Alex 2025-03-13 13:43:16 -07:00 committed by GitHub
parent 77d2b3099a
commit a11f8a1cd1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

@ -658,6 +658,22 @@
$param = substr($param, 1); //remove leading '&'
$param = substr($param, 0, strrpos($param, '&order_by=')); //remove trailing order by
//column overflow setting
echo "<style>\n";
if ($settings->get('cdr', 'column_overflow', 'hidden') == 'scroll') {
echo ".hide-sm-dn, .hide-md-dn, .hide-lg-dn {\n";
echo " all: revert;\n";
echo "}\n";
echo ".list {\n";
echo " overflow-x: scroll;\n";
echo "}\n";
} else {
echo ".list {\n";
echo " overflow-x: hidden;\n";
echo "}\n";
}
echo "</style>\n";
//show the results
echo "<form id='form_list' method='post'>\n";
echo "<input type='hidden' id='action' name='action' value=''>\n";