Viewport cuts away custom commands
Hey,
i put some special commands in my extcommands.xml to my printer slug. On regular computer this is working fine.
Now on smartphone or if i resice the browser window to some smaller windows there's reached the point where menu gets cut off. There's no way to scroll so the actions which are hidden. No chance on mobile phone to trigger those actions. Image 1 has a smaller viewport than image 2.
some feature: request regarding to this: make the extcommands.xml parser accepting custom svg icons and allow to put actions into custom seb menus.
Comments
Could also recreate the menu problem. Just need an idea how to fix it as it is a library function from bootstrap and problem seems to be where the menu is included. The top menu for example does not have that problem - it extends the main size and scrolls while printer menu stays sticky even the content below scrolls so has the wrong anchor.
Submenu is a problem. We use bootstrap 3 in gui and 4 in monitor and 4 has no submenus any more. And it must work in all. I'm not really a fan of the accordion idea - it is a click more. Maybe at some time we add extra menus if it gets too much entries.
Not sure if I interpret your "all buttons unusable". Do you mean the menus open wrong or no click at all is possible so menus even won't open?
When I open it in firefox on desktop (can't debug mobile and ios is always based on safari anyway) the buttons are all usable, so I hope you meant the menus.
img datei erstellen
* Dropdown menus now orient based on available space.
Regarding icons just add icon attribute to command tag
<command icon="url" ....>
If it starts with / it is on the server. You can create and use the shadow directory for this to store own images. O ruse absolute urls to fetch them from anywhere you like.
<server>
<branding>
<shadow-www-directory>/var/lib/Repetier-Server/shadow</shadow-www-directory>
</branding>
</server>
cd /var/lib/Repetier-Server/
mkdir shadow/
chown repetierserver:dialout shadow/
<command icon="/1.svg">
In server I had to rewrite the menu function my self get it all fixed. Will check monitor for next update.
And yes, I see you really have a lot of functions and also icons make good sense in your case.
https://cln.sh/kG61fv
But today I learned firefox is a bit picky with svg icons and when they can be drawn. Can you provide the source of one icon not working for testing.
Solution when it happened to me was quite simple. Go back to web action, edit icon - this loading also triggers error fix. Hit ok and save action. Now icon should appear. At least it did for me.
For importing drag the file only to upload area and it will be fixed on import. Only pasting content will not do that. Will add an extra repair on "ok" press for next version in case other users try that way.