[SOLVED] Panel width problem

Hello all
how to resize panel width?
I try this:

app.on('panelOpen', function (panel) {
  panel.el.clientWidth = 400;

but it does not work.
Thank you for ideas.

Do it in CSS like

.panel {
  width: 400px;

And use browser dev tools to inspect its styles in case it may require additionals styles

1 Like

Thank you so much but how to know should I set 400px or 320px?
I mean, in JavaScript I can check device width and set appropriate width but not sure how to do that in CSS.
Thank you.

CSS media queries?

@media (min-width: 768px) {
1 Like

Yes I found that when I posted question … :grinning:
Thank you.