diff --git a/root/usr/share/smanager/themes/default/public/css/legacypanel.css b/root/usr/share/smanager/themes/default/public/css/legacypanel.css new file mode 100644 index 0000000..4bdcfea --- /dev/null +++ b/root/usr/share/smanager/themes/default/public/css/legacypanel.css @@ -0,0 +1,4 @@ +.legacy-embedded { + width: 99%; + height: 600px; /* fallback default, matches your $height default */ +} \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/public/js/legacypanel.js b/root/usr/share/smanager/themes/default/public/js/legacypanel.js new file mode 100644 index 0000000..385f381 --- /dev/null +++ b/root/usr/share/smanager/themes/default/public/js/legacypanel.js @@ -0,0 +1,6 @@ +document.addEventListener('DOMContentLoaded', function() { + var obj = document.getElementById('legacy-embedded'); + if (obj && obj.dataset.legacyHeight) { + obj.style.height = obj.dataset.legacyHeight; + } +}); \ No newline at end of file diff --git a/root/usr/share/smanager/themes/default/templates/embedded.html.ep b/root/usr/share/smanager/themes/default/templates/embedded.html.ep index 4933f44..21548cb 100644 --- a/root/usr/share/smanager/themes/default/templates/embedded.html.ep +++ b/root/usr/share/smanager/themes/default/templates/embedded.html.ep @@ -14,10 +14,18 @@ % }
If the legacy panel does not appear, then you may not be logged into the original Server manager.
You can log in by clicking here. Or by clicking on the "Legacy SM" button at the top of the window.
If the legacy panel does not appear, then you may not be logged into the original Server manager.
You can log in by clicking here.