You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Table header is always visible when scrolling #918
You can solve it with your own CSS (And probably should do so in themes since the offset may vary by theme) but I'm going to update it to work with adminer 4/5 so it'll still work.
It was more complicated than it seemed to be. When I just added position: sticky, the borders really disappeared or there was a 1px gap at the top where the contents below was visible. I've tried top: -1px; which removed the gap but it looked ugly without the border. According to https://stackoverflow.com/a/53559396/783580, sticky is not compatible with border-collapse: collapse so I've changed it to separate and changed the borders construction. I've updated the designs broken by this and also added proper top where applicable.
after persistent alterations, after deleting everything and again the installation started working for me, but it is better for me not to suffer like that and wait until the main version has a header scroll. and it seems that now it has been done. thank you.
Activity
vrana commentedon Mar 17, 2025
I've sent pull requests to all the plugins to add the namespace (jnvsor/adminer-table-header-scroll#2) so this one is now compatible.
I've considered making the header sticky in the past but there were issues with some browsers. I'll try it again.
icyz commentedon Mar 17, 2025
That plugin needed to be changed to Adminer 5:
If you need: https://github.com/icyz/adminer/blob/master/plugins/table-header-scroll.php
OmlineEditor commentedon Mar 17, 2025
if possible add this plugin inside the default source code, it is a useful plugin and I think everyone should use it for convenience.
mesaros commentedon Mar 17, 2025
Is a plugin needed? It's elegantly solved using CSS - design by rmSOFT ;)
It works on all web browsers I know...
jnvsor commentedon Mar 17, 2025
@mesaros it didn't when I made it.
You can solve it with your own CSS (And probably should do so in themes since the offset may vary by theme) but I'm going to update it to work with adminer 4/5 so it'll still work.
@OmlineEditor can you try jnvsor/adminer-table-header-scroll#3 and see how it works?
vrana commentedon Mar 18, 2025
It was more complicated than it seemed to be. When I just added
position: sticky, the borders really disappeared or there was a 1px gap at the top where the contents below was visible. I've triedtop: -1px;which removed the gap but it looked ugly without the border. According to https://stackoverflow.com/a/53559396/783580, sticky is not compatible withborder-collapse: collapseso I've changed it toseparateand changed the borders construction. I've updated the designs broken by this and also added propertopwhere applicable.CSS: Sticky table headers (bug #918)
CSS: Sticky table headers (fix vrana#918)
OmlineEditor commentedon Mar 18, 2025
after persistent alterations, after deleting everything and again the installation started working for me, but it is better for me not to suffer like that and wait until the main version has a header scroll. and it seems that now it has been done. thank you.