Skip to content

File Manager: file/folder names render as the site domain at narrow viewport widths #749

@verifizieren

Description

@verifizieren

CloudPanel version(s) affected

2.5.3

Description

In the File Manager for a site, when the browser viewport is narrow enough that the file listing switches to its responsive/mobile layout, every row's "Name" column is replaced with the site's domain (e.g. www.example.com) instead of the actual file or folder name (e.g. htdocs, logs, tmp).

Widening the viewport back past the breakpoint restores the correct names, so the underlying data is fine — it appears to be a presentation-layer bug in how the responsive table fills in its mobile labels (likely a data-label or equivalent attribute being populated from the site context instead of from the row's filename).

How to reproduce

  1. Log in to CloudPanel.
  2. Open any site (e.g. www.example.com) and go to File Manager.
  3. Resize the browser window narrow enough to trigger the mobile layout (or open the page on a phone).
  4. Observe: every entry in the file listing is now labelled www.example.com instead of its real name.
  5. Widen the window back — names render correctly again.

Possible Solution

The responsive-table code in the File Manager view appears to be reading the site name into the cell label used at narrow widths, rather than the per-row filename. Checking the data-label (or equivalent) attribute on the name column cells, and ensuring it's populated from the row's filename rather than the page/site context, should fix it.

Additional Context

  • Reproduces in desktop browsers by narrowing the window past the layout breakpoint as well as on real mobile devices.
  • Only the displayed label is affected; clicking a row still navigates to the correct underlying file/folder.

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