Skip to content

Commit 36bb1c9

Browse files
committed
fix(play): the activity's own frame keeps its square corners (#92)
The stage rounded its corners in every state, and so cut the corners of the activity playing in it. It rounds only what the page itself draws there: the loader, the question for a file, a problem.
1 parent 7e4dfd1 commit 36bb1c9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/assets/site.css‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,8 @@ html[data-standalone] .play { padding: 1rem; }
10981098
.play-stage { display: grid; border: 1px solid var(--border); border-radius: 12px; overflow: clip; background: var(--surface); }
10991099
.play-stage > * { grid-area: 1 / 1; min-width: 0; }
11001100
.play:not([data-state="ready"]) .play-stage { aspect-ratio: 16 / 9; }
1101+
/* The activity's own frame keeps its square corners: the stage rounds only what the page draws in it. */
1102+
.play[data-state="ready"] .play-stage { border-radius: 0; }
11011103
.play .player-box { margin: 0; border: 0; border-radius: 0; }
11021104
.play:not([data-state="ready"]) .player-box { visibility: hidden; }
11031105
.play-panel { z-index: 1; display: grid; place-items: center; padding: 1.5rem 1rem; background: var(--surface); text-align: center; }

0 commit comments

Comments
 (0)