Skip to content

Generic resizable panels #490

In review
In review

Description

@Bohreromir

resizable-panel.svelte.ts and ResizeHandle live in storage/sidebar/ but are used by storage and Trino (keys storage_sidebar_width, storage_connect_sidebar_width, trino_catalog_browser_width). Only the storage sidebar width is restored before first paint, by an inline script in app.html; the other panels jump to their saved width after hydration.

  • Move resizable-panel and ResizeHandle to ui/.
  • Restore all panel widths before first paint with one generic mechanism instead of the storage-specific script in app.html.
  • saveWidth sets --storage-sidebar-width for every panel, so resizing e.g. the Trino catalog browser likely changes the storage sidebar width too.
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