forge
Explore
Log in

Don't you dare go Hollow

A row's delete confirm floats under its button instead of growing the row

Browse files at this commit

334cead6a6f9a4052221e307a80171f2b12601e5Ahmet Kaan GümüşParent: 796cc37
  • style
    • a row's delete confirm floats under its button instead of growing the row
Show full message
💄 style: a row's delete confirm floats under its button instead of growing the row
style/main.scssmodified+12 -8
@@ -831,17 +831,21 @@ code {
831 }831 }
832 }832 }
833 833
834- // A confirm opened on a row grows the row tall: keep the name and the Delete button on the top834+ // A row's confirm floats under its button, right-aligned, so opening it leaves the row as it is.
835- // edge, and right-align the summary and its popover under the row's end.
836- &:has(> .confirm-inline[open]) {
837- align-items: flex-start;
838- }
839-
840 > .confirm-inline {835 > .confirm-inline {
841- text-align: right;836+ position: relative;
842 837
843 .confirm-pop {838 .confirm-pop {
844- margin-left: auto;839+ position: absolute;
840+ right: 0;
841+ top: 100%;
842+ z-index: 10;
843+ max-width: calc(100vw - 32px);
844+
845+ // On a phone the button may wrap to the row's start: keep the popover in the flow there.
846+ @media (max-width: 600px) {
847+ position: static;
848+ }
845 }849 }
846 }850 }
847 }851 }