aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-06-13 19:46:34 +0200
committerThomas Lange <code@nerdmind.de>2021-06-13 19:46:34 +0200
commitd3b109fae0e246d01b0c73afd828347bcf5d2e86 (patch)
tree00e9aaef44b0c49c9695dfa7357ef59a75ada60c /core
parentb3fea3b92240a0ce51437ff84d933dd7a942a1b8 (diff)
downloadblog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.tar.gz
blog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.tar.xz
blog-d3b109fae0e246d01b0c73afd828347bcf5d2e86.zip
Use grid layout for items in administration area
Introduce a new 1/2/3-column CSS grid layout in the administration area for items on overview pages and in the search results. The column count of the grid depends on the users viewport width. In addition, the default value of the following configuration settings has been changed to 12 because 12 can also be divided by 2 and 3 which is useful for the 1/2/3-column grid layout. ADMIN.PAGE.LIST_SIZE = 12 ADMIN.POST.LIST_SIZE = 12
Diffstat (limited to 'core')
-rw-r--r--core/application.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/application.php b/core/application.php
index be70f92..3c431f8 100644
--- a/core/application.php
+++ b/core/application.php
@@ -95,8 +95,8 @@ foreach($configuration as $name => $value) {
# Set default configuration (for admin prefixes)
#===============================================================================
foreach([
- 'ADMIN.PAGE.LIST_SIZE' => Application::get('PAGE.LIST_SIZE'),
- 'ADMIN.POST.LIST_SIZE' => Application::get('POST.LIST_SIZE'),
+ 'ADMIN.PAGE.LIST_SIZE' => 12, # for 1/2/3-column grid layout
+ 'ADMIN.POST.LIST_SIZE' => 12, # for 1/2/3-column grid layout
'ADMIN.USER.LIST_SIZE' => Application::get('USER.LIST_SIZE'),
'ADMIN.PAGE.LIST_SORT' => Application::get('PAGE.LIST_SORT'),
'ADMIN.POST.LIST_SORT' => Application::get('POST.LIST_SORT'),