Orientation fix

This commit is contained in:
Vignesh Suresh
2026-06-06 20:45:36 +02:00
parent 29dfbf99a5
commit d4accc2cde
+3 -2
View File
@@ -124,8 +124,9 @@ gd.on('plotly_legendclick', function(ev) {
var btn = document.createElement('button'); var btn = document.createElement('button');
btn.type = 'button'; btn.type = 'button';
// Sits just BELOW the layer dropdown (top-left) so the two never overlap. // Sits to the RIGHT of the layer dropdown (which occupies the top-left up
btn.style.cssText = 'position:fixed;top:52px;left:14px;z-index:1000;' + // to ~290px) and left of the centred title, so it overlaps neither.
btn.style.cssText = 'position:fixed;top:50px;left:330px;z-index:1000;' +
'padding:7px 13px;font-size:13px;border-radius:7px;cursor:pointer;' + 'padding:7px 13px;font-size:13px;border-radius:7px;cursor:pointer;' +
'border:1px solid #ff9d00;font-family:system-ui,-apple-system,sans-serif;'; 'border:1px solid #ff9d00;font-family:system-ui,-apple-system,sans-serif;';