Skip to content

What to make of a draggable bottom sheet when there is no need to drag it? #148

@JayPanoz

Description

@JayPanoz

This is opening a can of worms but here we go. As a reminder:

  • the bottom sheet draggability is set through preferences with a min-, peek- and max-height;
  • the settings and their order are customisable in preferences too so we render these dynamically.

In EPUB, you would have an idea of what preferences to set depending on each action. And Customisable settings aren’t necessarily a concern.

Typically you would have a scrollable area where draggability makes sense:

The bottom sheet with settings overflowing in Epub

The Web Publication prototype made the issue clearer since we will have settings available based on displayTransformability in publication.metadata.accessibility. And the complication is that of course an implementer can decide to not provide these settings, leaving with only zoom for instance.

In other words, it could look like this at peek height:

The same bottom sheet with only zoom available, and huge space below

While the content perfectly fits at min height:

The bottom sheet with only zoom at min-height, there is still some space left below

And does not make any sense at max-height:

The bottom sheet with only zoom at fullscreen height, with huge space wasted

In other words, it could be sized based on content-height in that case.

The challenge is that we do not know ahead of time. We only know once the bottom sheet and its contents are effectively rendered.

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