docker-adminer icon indicating copy to clipboard operation
docker-adminer copied to clipboard

issue about ADMINER_DESIGN=dracula

Open alpaltunel opened this issue 9 months ago • 6 comments

Adminer version: 5.0.6

I am using docker container named "adminer" which runs 4.1.7 automatically. I upgraded it to 5.0.6 and I am using dracula theme as default. when I run I saw lrwxrwxrwx 1 adminer adminer 27 Mar 20 11:54 adminer.css -> designs/dracula/adminer.css

which is not existing. instead adminer-dark.css is there and symbolic link is wrong. how can I fix this issue?

alpaltunel avatar Mar 20 '25 13:03 alpaltunel

I am having the same issue

Atakku avatar Mar 29 '25 16:03 Atakku

how can I fix this issue?

This will need a fix in https://github.com/TimWolla/docker-adminer/blob/48079bec8bcc9f91752cf55a1d4ad66667520543/5/entrypoint.sh#L4-L10 to handle dark-mode styles. I'll need to investigate how exactly they work, e.g. whether symlinking adminer.css to adminer-dark.css works or whether it needs to be adminer-dark.css -> adminer-dark.css and what happens if there's both adminer.css and adminer-dark.css.

TimWolla avatar Mar 30 '25 10:03 TimWolla

Hi,

After upgrading to 5.1.0 I'm getting the rmsoft dark as default theme. My understanding is that ADMINER_DESIGN is broken so I tried using a custom theme by copy-paste the dracula theme inside a file adminer.css and then adding "./docker/adminer.css:/var/www/html/adminer.css:ro" in the volumes section but it's not working, still getting rmsoft. Any idea why ?

using fastcgi image and this is what I'm getting :

Refused to apply style from 'https://adminer.local/adminer.css?pgsql=xx&username=xx&db=xx&v=2244751288' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.

pesseyjulien avatar Mar 31 '25 15:03 pesseyjulien

I had this same issue. I was able to resolve it with a workaround. See more info here: https://github.com/vrana/adminer/issues/988

bluecasita avatar Apr 06 '25 14:04 bluecasita

I'll need to investigate how exactly they work

  • adminer.css and adminer-dark.css exists: Auto switching dark mode with all styles.
  • Only adminer.css: Do not include default dark Adminer style.
  • Only adminer-dark.css: Force Adminer dark style as base.
  • Neither: Auto switching dark mode.

https://github.com/vrana/adminer/blob/v5.1.1/adminer/include/design.inc.php#L33

vrana avatar Apr 07 '25 04:04 vrana

Hi, still not working with v5.2.1 ?

pesseyjulien avatar Apr 24 '25 09:04 pesseyjulien