Skip to content

Consider constraining the height of the messagepane #671

@phiw13

Description

@phiw13

… to prevent the messagepane to grow taller than the viewport - example: people uploading many images at once. OP in this forum thread - https://forum.textpattern.com/viewtopic.php?id=52037 - uploads upwards of 40 imagea at once.

Suggested code (as used in a custom.css file for testing):

/* .messagepane */
#messagepane {
  inset-inline-start: 4vw;  /* logical prop -> RTL/LTR */
  inset-inline-end: auto; /* override Hive stylesheet - for testing */
  max-width: 92vw; /* prevent endless width when faced with long strings */
}

/* .messagepane > span */
#messagepane .messageflash {
  overflow: auto;
  max-height: 80vh;
  position: static; /* override Hive stylesheet - for testing */
}

.close .ui-icon {
  bottom: min(50%, 20vh); /* never farther away from bottom than 20vh */
  top: auto; /* override Hive stylesheet - for testing */
}

Demo using Sandspace theme: https://dev.l-c-n.com/txp/txp-sandspace-messagepane_long.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions