Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Drawer width size issue, static width


Fix drawer width UI element in react mechatronic, I've noticed that it maintains a static size. Is there a recommended approach or CSS strategy to increase the width size of the drawer element dynamically and adjust its size based on the viewport or content changes?
Reference CCS class: [class="modal-dialog modal-xl"]
Reference Model Code:

<Modal
show={!!damModal?.createChannelModal}
onHide={() => damModal?.setCreateChannelModal(false)}
fullscreen={!!expandModal ? true : ''}
dialogClassName='modal-xl' [01: Reference comment bellow]
className={`modal ${!expandModal ? (getRtl === 'true' ? 'left' : 'right') : ''} fade`}
>

</Modal>

Appendix 01:
A slight increase in pixel width is needed, adjusted to accommodate varying dynamic content.


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (2)


Hi,

Thank you for reaching out to us.

Based on the provided code, it looks like you are trying to adjust the width of a React-Bootstrap modal. By default, the modal should adapt to the screen width unless you specify a fixed width for your modal element or any child elements have fixed widths. If you've set fixed width values, consider using the min-width or max-width CSS properties instead for more flexible responsiveness.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



The code appears to adjust the width of a React-Bootstrap window. The popup should automatically resize to the screen width, but you can define a preset width or make sure child elements have fixed widths. To improve responsiveness, use min-width or max-width CSS instead of fixed widths. gorilla tag


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(