Fix ended polls overlapping event bubbles (#11895)

* Fix ended polls overlapping event bubbles

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

* Update snapshot

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>

---------

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2023-11-20 17:27:54 +00:00 committed by GitHub
parent fc37f2d0e3
commit 2f0eb8fb05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 2 deletions

View file

@ -358,6 +358,11 @@ limitations under the License.
// Keep height equal to text for shield alignment, additional 2px because of 1px padding on text
height: calc($font-18px + 2px);
}
.mx_MPollEndBody {
// Prevent the poll end body from exceeding the tile width
width: 100%;
}
}
&:not(.mx_EventTile_noBubble) .mx_EventTile_line:not(.mx_EventTile_mediaLine) {

View file

@ -108,7 +108,7 @@ export const MPollEndBody = React.forwardRef<any, IBodyProps>(({ mxEvent, ...pro
}
return (
<div ref={ref}>
<div className="mx_MPollEndBody" ref={ref}>
<Caption>{_t("timeline|m.poll.end|ended")}</Caption>
<MPollBody mxEvent={pollStartEvent} {...props} />
</div>

View file

@ -10,7 +10,9 @@ exports[`<MPollEndBody /> when poll start event does not exist in current timeli
exports[`<MPollEndBody /> when poll start event exists in current timeline renders an ended poll 1`] = `
<div>
<div>
<div
class="mx_MPollEndBody"
>
<span
class="mx_Caption"
>