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

Metronic 8.X Datatable Responsive Table Data Display Misalignment


Such behavior does not happen on Metronic 7.X where the table data is aligned correctly and does not display table data below table header on datatable responsive mode.

Example for Metronic 7.X (Expected behavior, much tidy and pretty layout)
https://imgur.com/a/WAuvXNe

Example for Metronic 8.X (table data displaying below table header, and does not behave like Metronic 7.X datatable responsive):
https://imgur.com/a/x30LLyd

Would like to request Metronic team to amend such changes to the datatable. ❤


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 (3)


Hi,

Thank you for the heads-up. We will fix this in the next update.
In the meantime, you can add the below hotfix on your end in src/sass/vendors/plugins/_datatables.scss:


// Child details
.dtr-details {
li {
display: flex;
}
}


Then recompile your assets folder with Gulp or Webpack.

Please note that the build tools are required only in the development environment just to compile the assets when the source folder files are modified. In the hosting/server deployment, you will only need the compile assets, no need to install the build tools dependencies there.

Could you please try it and let us know the result?

Regards.


Your Support Matters!

We will highly appreciate your Metronic Review on Themeforest.
Please go to Themeforest Downloads page, select Metronic & leave your feedback.

Hi Sean,

Thanks for the prompt response! happy

Attempted to use Gulp to generate the new assets but unfortunately that does not work for me, however, I attempted to add custom css below to overwrite the existing style.bundle.css and it works for me.


.dtr-details > li {
display: flex;
}


Hope it helps anyone who encounter it and looking for a solution. ❤



Hi Seng happy,

Glad to hear that you managed to get it working. Is the next update this issue will be fixed in the global plugins.css bundle.

All the best with your projects!

Regards.


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  :(