Blog Post
JeremyFriedel
10-15-2025Sisense Employee
For a styling change related to the is Use Case, when removing a large amount of menu items the menu may become narrower, to set the menu width to a set width use the widget, dashboard script below, or include it within a plugin. This can also be used in scenarios where no menu items are removed, but the menu is preferred to be wider.
Set Width of Sisense Menu Items Manually:
//Set Width of Sisense Menu Items Manually:
widget.on("initialized", function onInitialized(w, args) {
// CSS to inject, increase Sisense menu width, change "225px" with desired width
const css = `
.menu-host .menu-item-host .menu-content,
.menu-host .menu-item-host .menu-item,
.menu-host .menu-item-host .menu-item.mi-separator,
.menu-item-container {
width: 225px;
min-width: 225px;
max-width: 225px;
}
`;
const styleId = "sisense-custom-menu-width-style";
// Prevent duplicate injection
if (document.getElementById(styleId)) {
return;
}
const styleEl = document.createElement("style");
styleEl.id = styleId;
styleEl.type = "text/css";
styleEl.appendChild(document.createTextNode(css));
document.head.appendChild(styleEl);
});
Related Content
Related Content
Plotly is wonderful, but sometimes you end up with a chart that looks like it's too small, or that it's not taking up all the space. Why does it do that? In this post, you'll learn how to fix ...
16KViews
0likes
0Comments
Learning Resources
Links to official Sisense informational and educational content.
Sisense Academy: Free Courses and Certifications
Official Developer Documentation
Official Product Documentation
Official Sisense YouTube Channel
Sisense Compose SDK Playground
Official Sisense Discord