Skip to content

sharing-pane: tighten typography, prevent name overflow, add WebID copy button #15

Closed

Description

@melvincarvalho

A few small UX polish items on the Sharing pane.

1. Text feels slightly oversized

On a typical desktop view the headings, agent names, URL, and add-form input read a touch too large for the surrounding chrome. Reduce by ~1px across the board.

2. Long unbreakable agent identifiers overflow the card

A WebID like did:nostr:3bf82c0baa8761f3291ff3941e0c00f81f3ba52317403e23ce0500e013c234c5 has no whitespace, so the agent name line (which renders the full string when no path component is available) blows past the card boundary on narrow viewports — visible on iPhone XR width. The URI line below it already truncates with ellipsis; the name line does not.

3. No way to copy a WebID

The truncated URI is currently read-only. Useful to be able to grab the full identifier, especially given (2).

Proposed

  • Drop font-sizes ~1px on header h2, resource URL, status, public-access title/subtitle, permissions label, agent name, WebID, add-input, add-button.
  • Add overflow:hidden;text-overflow:ellipsis;white-space:nowrap + title= to the agent name <div>.
  • Add a small 📋 copy button next to the WebID line; clicking the URI text or the button copies the full agent string and shows a brief ✓ confirmation. execCommand('copy') fallback for non-secure contexts.

Only applies to individual-agent rows (not Everyone/Authenticated class rows).

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