Vertical fit in dark mode
Vertical fit in dark mode
toniux79
Posts: 23Questions: 7Answers: 0
Hello,
Is it possible to have the plugin vertical fit in dark mode ?
As you can see on this page, when the dark mode is activated, the datatable stay in white :
https://datatables.net/blog/2017-12-31
Is it possible to have the datable fitting the page in height with another option ?
Kind regards. And happy new year everyone!
Anthony
This question has an accepted answers - jump to answer
Answers
Here is a test case, some parts are still in white and I dont't know why :
https://live.datatables.net/visageho/481/edit
Hi Anthony,
Yes! Once DataTables 2 is out (sometime in January is the plan), I plan to go over the plugins and update them for the API and dark mode support.
Allan
Hello Allan,
Thank you for your prompt answer.
I finally succeeded to have a correct dark mode by adding the following css code :
body {
color-scheme: initial;
}
I was thinking about this actually and yeah, the script for the resizing doesn't make use of colours at all, it is just down to the styling of the container, for which it sounds like you've got a solution.
Allan