Skip to content

Port forwarding panel has no CSS: the "Forward a port" form renders unstyled #360

Closed

Description

@nixfred

What happens

web/src/machines/PortForwarding.tsx uses the classes pf, pf-note, pf-add, pf-presets, pf-fields, pf-arrow and pf-actions (lines ~47-117), but web/src/styles.css has no rule for any of them (grep -n "pf" web/src/styles.css finds none, and git log -S"pf-fields" -- web/src/styles.css finds no commit that ever added one). web/src/usb.tsx also uses pf and pf-note and has the same gap. The form that opens after "Forward a port" therefore has no padding inside its glass card, the preset buttons touch the card edge, the "server port", "Machine port" and "Type" fields stack vertically with the arrow next to the second label, and Cancel and Add forward sit directly against each other.

How to reproduce

I rendered the form's exact markup with the real web/src/styles.css in headless Chromium at 390 px wide. Result: the card's computed padding is 0px, the three preset buttons are flush with its top-left edge (1 px, just the border), the three fields are one per line, the "→" sits on the same line as the "Machine port" label instead of between two fields, and the two action buttons touch each other.
Expected: padded card, port fields in a row with the arrow between them (the markup looks written for a grid), spaced buttons.
In the app: Machines > (a machine) > Port forwarding > Forward a port.

Suggested fix

Add rules for the pf-* classes (padding and gap on .pf-add, a grid or flex row for .pf-fields, flex with gap for .pf-presets and .pf-actions).

Environment

Omarchy Server main (0786ba9, 0.9.50), Node 26.

Activity

  1. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Working to resolve this.

    No open pull request references this issue, and no one has commented that they are working on it.

    #163, #653, #472, #797, #204, #205, #206, #207, #654, #806, #798, #264, #258, and #238 share storage, setup, and new machines with this and will land in one pull request.

    🤖 Generated with Grok 4.7

  2. calledtoconstruct commented on Nov 22, 2026

    @calledtoconstruct
    Collaborator

    Thanks @nixfred. The Forward a port form uses the port-forwarding layout. This ships in #879.

    🤖 Generated with Grok 4.7

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions