Skip to content

Commit

Permalink
Fix the collapsed height of the different elements
Browse files Browse the repository at this point in the history
  • Loading branch information
leofeyer committed Nov 22, 2023
1 parent 4e10b47 commit c613c7d
Show file tree
Hide file tree
Showing 33 changed files with 57 additions and 59 deletions.
2 changes: 1 addition & 1 deletion comments-bundle/contao/dca/tl_comments.php
Expand Up @@ -73,7 +73,7 @@
'fields' => array('date'),
'panelLayout' => 'filter;sort,search,limit',
'defaultSearchField' => 'comment',
'limitHeight' => 100
'limitHeight' => 104
),
'label' => array
(
Expand Down
2 changes: 1 addition & 1 deletion core-bundle/assets/controllers/limit-height-controller.js
Expand Up @@ -60,7 +60,7 @@ export default class extends Controller {

this.togglerMap.set(node, toggler);

node.before(toggler);
node.append(toggler);
this.updateOperation();
}

Expand Down
4 changes: 3 additions & 1 deletion core-bundle/assets/scripts/limit-height.js
@@ -1,6 +1,8 @@
window.addEventListener('DOMContentLoaded', function() {
document.querySelectorAll('div.limit_height').forEach(function(div) {
window.console && console.warn('Using "limit_height" class on child_record_callback is deprecated. Set a list.sorting.limitHeight in your DCA instead.');
if (window.console) {
console.warn('Using "limit_height" class on child_record_callback is deprecated. Set a list.sorting.limitHeight in your DCA instead.');
}

const parent = div.parentNode.closest('.tl_content');

Expand Down
2 changes: 1 addition & 1 deletion core-bundle/contao/dca/tl_content.php
Expand Up @@ -67,7 +67,7 @@
'headerFields' => array('title', 'headline', 'author', 'tstamp', 'start', 'stop'),
'child_record_callback' => array('tl_content', 'addCteType'),
'renderAsGrid' => true,
'limitHeight' => 144
'limitHeight' => 160
),
'operations' => array
(
Expand Down
2 changes: 1 addition & 1 deletion core-bundle/contao/dca/tl_form_field.php
Expand Up @@ -61,7 +61,7 @@
'headerFields' => array('title', 'tstamp', 'formID', 'storeValues', 'sendViaEmail', 'recipient', 'subject'),
'child_record_callback' => array('tl_form_field', 'listFormFields'),
'renderAsGrid' => true,
'limitHeight' => 84
'limitHeight' => 100
),
'operations' => array
(
Expand Down

This file was deleted.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions core-bundle/contao/themes/flexible/entrypoints.json
Expand Up @@ -2,37 +2,37 @@
"entrypoints": {
"backend": {
"css": [
"/system/themes/flexible/backend.21e7532d.css"
"/system/themes/flexible/backend.8a3034c8.css"
]
},
"confirm": {
"css": [
"/system/themes/flexible/confirm.919d7476.css"
"/system/themes/flexible/confirm.5231eaa5.css"
]
},
"conflict": {
"css": [
"/system/themes/flexible/conflict.7fbc711f.css"
"/system/themes/flexible/conflict.41a64ff6.css"
]
},
"diff": {
"css": [
"/system/themes/flexible/diff.366f5cdb.css"
"/system/themes/flexible/diff.028ed04c.css"
]
},
"help": {
"css": [
"/system/themes/flexible/help.1c017ede.css"
"/system/themes/flexible/help.5cbdb4ee.css"
]
},
"login": {
"css": [
"/system/themes/flexible/login.2da29d04.css"
"/system/themes/flexible/login.dcee719f.css"
]
},
"popup": {
"css": [
"/system/themes/flexible/popup.48ecd1b2.css"
"/system/themes/flexible/popup.751f0537.css"
]
},
"tinymce": {
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

28 changes: 14 additions & 14 deletions core-bundle/contao/themes/flexible/manifest.json
@@ -1,20 +1,20 @@
{
"backend.css": "/system/themes/flexible/backend.21e7532d.css",
"confirm.css": "/system/themes/flexible/confirm.919d7476.css",
"conflict.css": "/system/themes/flexible/conflict.7fbc711f.css",
"diff.css": "/system/themes/flexible/diff.366f5cdb.css",
"help.css": "/system/themes/flexible/help.1c017ede.css",
"login.css": "/system/themes/flexible/login.2da29d04.css",
"popup.css": "/system/themes/flexible/popup.48ecd1b2.css",
"backend.css": "/system/themes/flexible/backend.8a3034c8.css",
"confirm.css": "/system/themes/flexible/confirm.5231eaa5.css",
"conflict.css": "/system/themes/flexible/conflict.41a64ff6.css",
"diff.css": "/system/themes/flexible/diff.028ed04c.css",
"help.css": "/system/themes/flexible/help.5cbdb4ee.css",
"login.css": "/system/themes/flexible/login.dcee719f.css",
"popup.css": "/system/themes/flexible/popup.751f0537.css",
"tinymce.css": "/system/themes/flexible/tinymce.e5009f94.css",
"tinymce-dark.css": "/system/themes/flexible/tinymce-dark.596023db.css",
"backend.21e7532d.css.map": "/system/themes/flexible/backend.21e7532d.css.map",
"confirm.919d7476.css.map": "/system/themes/flexible/confirm.919d7476.css.map",
"conflict.7fbc711f.css.map": "/system/themes/flexible/conflict.7fbc711f.css.map",
"diff.366f5cdb.css.map": "/system/themes/flexible/diff.366f5cdb.css.map",
"help.1c017ede.css.map": "/system/themes/flexible/help.1c017ede.css.map",
"login.2da29d04.css.map": "/system/themes/flexible/login.2da29d04.css.map",
"popup.48ecd1b2.css.map": "/system/themes/flexible/popup.48ecd1b2.css.map",
"backend.8a3034c8.css.map": "/system/themes/flexible/backend.8a3034c8.css.map",
"confirm.5231eaa5.css.map": "/system/themes/flexible/confirm.5231eaa5.css.map",
"conflict.41a64ff6.css.map": "/system/themes/flexible/conflict.41a64ff6.css.map",
"diff.028ed04c.css.map": "/system/themes/flexible/diff.028ed04c.css.map",
"help.5cbdb4ee.css.map": "/system/themes/flexible/help.5cbdb4ee.css.map",
"login.dcee719f.css.map": "/system/themes/flexible/login.dcee719f.css.map",
"popup.751f0537.css.map": "/system/themes/flexible/popup.751f0537.css.map",
"tinymce.e5009f94.css.map": "/system/themes/flexible/tinymce.e5009f94.css.map",
"tinymce-dark.596023db.css.map": "/system/themes/flexible/tinymce-dark.596023db.css.map"
}

Large diffs are not rendered by default.

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion core-bundle/contao/themes/flexible/styles/main.css
Expand Up @@ -1601,7 +1601,6 @@ table.tl_listing {
.limit_toggler {
width: 100%;
position: absolute;
z-index: 10;
bottom: 0;
left: 0;
background: var(--content-bg);
Expand Down
2 changes: 0 additions & 2 deletions core-bundle/public/backend.3c25ca82.js

This file was deleted.

1 change: 0 additions & 1 deletion core-bundle/public/backend.3c25ca82.js.map

This file was deleted.

2 changes: 0 additions & 2 deletions core-bundle/public/backend.c9fb8aa9.js

This file was deleted.

1 change: 0 additions & 1 deletion core-bundle/public/backend.c9fb8aa9.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions core-bundle/public/backend.e9f9bd8d.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions core-bundle/public/backend.e9f9bd8d.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion core-bundle/public/entrypoints.json
Expand Up @@ -2,7 +2,7 @@
"entrypoints": {
"backend": {
"js": [
"/bundles/contaocore/backend.c9fb8aa9.js"
"/bundles/contaocore/backend.e9f9bd8d.js"
]
}
}
Expand Down
4 changes: 2 additions & 2 deletions core-bundle/public/manifest.json
@@ -1,4 +1,4 @@
{
"backend.js": "/bundles/contaocore/backend.c9fb8aa9.js",
"backend.c9fb8aa9.js.map": "/bundles/contaocore/backend.c9fb8aa9.js.map"
"backend.js": "/bundles/contaocore/backend.e9f9bd8d.js",
"backend.e9f9bd8d.js.map": "/bundles/contaocore/backend.e9f9bd8d.js.map"
}
2 changes: 1 addition & 1 deletion faq-bundle/contao/dca/tl_faq.php
Expand Up @@ -63,7 +63,7 @@
'headerFields' => array('title', 'headline', 'jumpTo', 'tstamp', 'allowComments'),
'child_record_callback' => array('tl_faq', 'listQuestions'),
'renderAsGrid' => true,
'limitHeight' => 144
'limitHeight' => 160
)
),

Expand Down
2 changes: 1 addition & 1 deletion newsletter-bundle/contao/dca/tl_newsletter.php
Expand Up @@ -58,7 +58,7 @@
'defaultSearchField' => 'subject',
'child_record_callback' => array('tl_newsletter', 'listNewsletters'),
'renderAsGrid' => true,
'limitHeight' => 144
'limitHeight' => 160
),
'operations' => array
(
Expand Down

0 comments on commit c613c7d

Please sign in to comment.