I am trying to determine if the spacing to the side of the plugin is usable? Please see screen shot attached.
The panels width seems to be limited, the buttons expand to a point and then once the panels width has exceeded some px, the buttons no longer respond responsively or fit the newly expanded window. What am I doing wrong? or is this a feature I have to work with?
It’s just that blank space to the right that i can’t seem to place my content in/across etc
Any help would be much appreciated, even just being able to place the content in the right side of the panel leaving space on the left would be insightful… I’m trying to understand why at all turns i’m unable to place anything in that area let alone make use of all the space a panel has to offer.
I’ve tried applying a width of auto/specifc pixel number etc etc, any pointers would be a massive massive help
main.js
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
var root = document.createElement("div");
root.style.height = "100vh";
root.style.overflow = "auto";
root.style.padding = "10px 20px";
// Add an id and class
root.id = "root-div"; // Assigns an id
root.className = "root-container"; // Assigns a class
ReactDOM.render(
<App />,
document.body.appendChild(root)
)
The App.js just renders a bunch of sp-action-buttons
in my experience, the way to handle responsiveness in uxp is via javascript, to take clientWidth measurements and set classnames based on whatever breakpoints, or set width inline via js