mkoryak / mkoryak/floatThead

fthfoot > visible (padded) with Bootstrap 5.3.X

Open
#481 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.2k
Forks
193
PR merge metrics
No merged PRs in 30d

Description

Hi,

discovered this plugin just today. Been trying to do something similar through thead clonation via jQuery and achieved something interesting, but this is the absolute solution!
Even being compatible with Bootstrap's table responsiveness container! So no need to reinvent the wheel! And don't get fooled: "position: sticky" on TH is NOT the solution at all. Too messy...

So, just have seen that (and I guess that it was not on Bootstrap 3.X) the self appended fthfoot element, beings visible on bootstrap tables. As it gets padded from multiples CSS rules on it.
Visibility: hidden colud be replaced by "collapse", but I'm not sure if this breaks something on plugin's behaviour.

FSURXW2

So I've gone thorugh a simple:

fthfoot, fthfoot>*, fthfoot>*>*{ padding: 0px!important; margin: 0px!important; }

Works like charm.
Hope someone can tell if it's the right path to go, or maybe any other solution should be more appropiate.

Thanks and regards,

MR.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with floatThead inside a Bootstrap 5.3.x responsive table and inspect the generated fthfoot element and its computed padding. Compare the reported CSS workaround with replacing visibility: hidden by collapse, then verify that the footer remains hidden and plugin behavior is unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
bootstrap, javascript, jquery
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.