Vertical fit in dark mode

Vertical fit in dark mode

toniux79toniux79 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

  • toniux79toniux79 Posts: 23Questions: 7Answers: 0
    edited December 2023

    Here is a test case, some parts are still in white and I dont't know why :'( :
    https://live.datatables.net/visageho/481/edit

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    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

  • toniux79toniux79 Posts: 23Questions: 7Answers: 0

    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; }

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    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

Sign In or Register to comment.