• Dashboard page is blank — content clipped by #wpbody having no height (one-line CSS fix)

    Problem: Settings → Copy to Clipboard renders blank below the header. The stats cards, Recent Rules, Quick Actions and System Health are all cut off. Reproduces in Chrome/Edge, normal and incognito — so it’s not browser, cache, extension or network related.

    Cause: The dashboard content actually renders fine — it’s clipped by CSS. The plugin emits an empty root and an absolutely-positioned, overflow:hidden panel:

    <div id="ctc-dashboard-root"></div>
    <div class="ctc-dashboard h-full ... absolute top-0 left-0 right-0 bottom-0 overflow-hidden">

    Since the panel is absolute + top/bottom:0, its height resolves against the nearest positioned ancestor, #wpbody. WordPress sets #wpbody { position: relative; } but gives it no height (auto/content-driven). The absolutely-positioned panel contributes no height itself, so it collapses to ~75px — just the header row — and overflow:hidden clips everything below it.

    #wpbody             height 75px  (auto, no explicit height)
      #ctc-dashboard-root  height 0px   ← collapse
        .ctc-dashboard     height 75px  ← clipped

    Fix (verified working):

    .settings_page_ctc #wpbody {
        height: calc(100vh - 32px); /* 32px = admin bar */
    }

    I tested this live — with that one rule all cards and sections render correctly.

    Workaround for users: add the CSS above via a snippets/header-footer plugin until patched.

    Environment: WP 7.1.3 · Copy Anything to Clipboard 5.5.3 (Free) · nginx · no CSP blocking.

Viewing 1 replies (of 1 total)
  • Plugin Support maheshcai

    (@maheshcai)

    Hi @deartanker,

    Thank you for the excellent report — and for the clear root-cause analysis. You were exactly right: the admin screens use an absolutely positioned shell, and #wpbody had no explicit height, so the content was clipped under overflow: hidden.

    We’ve fixed this in Copy Anything to Clipboard 5.5.4 by giving #wpbody a viewport-based height on the Dashboard, Global Injector, Rules list, and Analytics pages (including the mobile admin-bar height). We also confirmed compatibility with WordPress 7.1.3.

    Please update to 5.5.4 when it’s available, then hard-refresh the admin page (or clear any CSS cache). After that you can remove the temporary CSS workaround.

    Thanks again for taking the time to dig into this and share a verified fix — that helped us ship the patch quickly.

    Best regards,
    Support Team

Viewing 1 replies (of 1 total)

You must be logged in to reply to this review.