Skip to content

Table header is always visible when scrolling #918

Closed

Description

@OmlineEditor

if the table contains a lot of similar data and the table is very large, it is desirable to always see the table header.

there is a plugin but it does not work in the new version
https://github.com/jnvsor/adminer-table-header-scroll/

Is it possible to improve the work with large tables by making the table header always visible?

Activity

  1. vrana commented on Mar 17, 2025

    @vrana
    Owner

    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.

  2. icyz commented on Mar 17, 2025

    @icyz

    That plugin needed to be changed to Adminer 5:

    If you need: https://github.com/icyz/adminer/blob/master/plugins/table-header-scroll.php

  3. OmlineEditor commented on Mar 17, 2025

    @OmlineEditor
    ContributorAuthor

    I've considered making the header sticky in the past but there were issues with some browsers. I'll try it again.

    if possible add this plugin inside the default source code, it is a useful plugin and I think everyone should use it for convenience.

  4. mesaros commented on Mar 17, 2025

    @mesaros
    Contributor

    Is a plugin needed? It's elegantly solved using CSS - design by rmSOFT ;)
    It works on all web browsers I know...

  5. jnvsor commented on Mar 17, 2025

    @jnvsor
    Contributor

    @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?

  6. vrana commented on Mar 18, 2025

    @vrana
    Owner

    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.

  7. added a commit that references this issue on Mar 18, 2025
  8. added a commit that references this issue on Mar 18, 2025
    29f9540
  9. OmlineEditor commented on Mar 18, 2025

    @OmlineEditor
    ContributorAuthor

    can you try jnvsor/adminer-table-header-scroll#3 and see how it works?

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions