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
|
// Keep height equal to text for shield alignment, additional 2px because of 1px padding on text
|
||||||
height: calc($font-18px + 2px);
|
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) {
|
&: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 (
|
return (
|
||||||
<div ref={ref}>
|
<div className="mx_MPollEndBody" ref={ref}>
|
||||||
<Caption>{_t("timeline|m.poll.end|ended")}</Caption>
|
<Caption>{_t("timeline|m.poll.end|ended")}</Caption>
|
||||||
<MPollBody mxEvent={pollStartEvent} {...props} />
|
<MPollBody mxEvent={pollStartEvent} {...props} />
|
||||||
</div>
|
</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`] = `
|
exports[`<MPollEndBody /> when poll start event exists in current timeline renders an ended poll 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div
|
||||||
|
class="mx_MPollEndBody"
|
||||||
|
>
|
||||||
<span
|
<span
|
||||||
class="mx_Caption"
|
class="mx_Caption"
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue