Ad Widget

Collapse

Resize Host Context Menu?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRedbourne
    Senior Member
    • Feb 2023
    • 103

    #1

    Resize Host Context Menu?

    I don't know if I've simply missed the option somewhere - or skipped a piece of documentation. But is there a way to resize the context menu in the Host menu?

    2 Host menu (zabbix.com)
    Click image for larger version  Name:	image.png Views:	0 Size:	15.9 KB ID:	476782

    I coul​d shorten the script names, but I need them to be descriptive and specific as some of our scripts do things that are quite similarly named​ but do different things on the host. Some of them are currently too long to read fully.

    Edit: Zabbix Server 6.4.9 on Apache.
    Last edited by MRedbourne; 09-01-2024, 05:06.
  • Hamardaban
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2019
    • 2713

    #2
    Edit the css style file a bit assets/styles/_you_theme_.css

    .menu-popup {
    ...................
    min-width: 300px;
    ...................

    Comment

    • MRedbourne
      Senior Member
      • Feb 2023
      • 103

      #3
      Yeah, I was hoping for something a little more formal, not modifying CSS files on the individual hosts. Given the option, I may just try to condense the script names further.

      Comment

      • Hamardaban
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • May 2019
        • 2713

        #4
        The style change is done in one place on the server where zabbix UI is installed. You don't have hundreds of such servers, do you?

        Comment

        • MRedbourne
          Senior Member
          • Feb 2023
          • 103

          #5
          Originally posted by Hamardaban
          The style change is done in one place on the server where zabbix UI is installed. You don't have hundreds of such servers, do you?
          No no, even if I did, we have configuration automation in place. More along the lines that such changes may need to be redone when I patch, and likely also need to go through an internal approval process, even for stylistic changes.

          Comment


          • Hamardaban
            Hamardaban commented
            Editing a comment
            Then what's the point of asking questions if you can't apply the answers? :-)
        • MRedbourne
          Senior Member
          • Feb 2023
          • 103

          #6
          I never said I couldn't [modify the code] or "apply the answers", just that the process of getting internal approval to modify the code (what you suggested) is likely to be a larger barrier than renaming scripts to be more condensed (while differentiating sufficiently between their functions). Factor in potentially having to re-apply these changes any time we patch also makes one question if the change is truly worth it.

          There is arguably a rather large difference between modifying source files (even stylistic ones like CSS) and checking a box to enable something like dynamic menu sizing. Arguably, there's still even a difference between inputting your own size through an official Web UI box to control it, and actually plugging new values into the raw CSS file. The former option, assuming it's correctly coded, likely comes with boundaries. (Eg: You can't have negative values, cannot exceed the size of screen). The latter may very well not. Given the leeway and elasticity of Zabbix's configurable dashboards (eg: allowing us to choose widget sizes), asking if there was a native way to modify the context menu size was not an unreasonable ask.

          Comment

          Working...