Skip to content

Add option to limit the width of the desktop notification bar #7622

@panreyes

Description

@panreyes

Is your feature request related to a problem? Please describe.
The width of the notification bar is too long and uncomfortable for me.
I already implemented the feature in MeshAgent, I will soon implement the MeshCentral side of it.
Related to
Ylianst/MeshAgent#331
Ylianst/MeshAgent#323

Describe the solution you'd like

  • Add an option to config.json: notifyDesktopBarMaxWidth
  • In meshcore.js, use that value
try {
    require('notifybar-desktop').MaxWidth = notifyDesktopBarMaxWidth;
} catch (ex) {
    MeshServerLogEx(32, null, "notifybar-desktop MaxWidth not available (" + ws.httprequest.remoteaddr + ")", ws.httprequest);
}

I still have to find out how to:

  • Add a configuration option to config.json
  • Read it in the web server
  • Send it to the agent

But I can confirm it's already working by hardcoding the width value.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions