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:
parent
fc37f2d0e3
commit
2f0eb8fb05
3 changed files with 9 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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"
|
||||
>
|
||||
|
|
Loading…
Reference in a new issue