chore: add space between the word card / emoji selector and the overlay message (#3533)

This commit is contained in:
ggurdin 2025-07-23 09:31:05 -04:00 committed by GitHub
parent b2625138f0
commit 75ff8cf845
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 6 deletions

View file

@ -264,14 +264,15 @@ class MessageSelectionPositionerState extends State<MessageSelectionPositioner>
double get _contentHeight {
final messageHeight =
_overlayMessageSize?.height ?? originalMessageSize.height;
return messageHeight + reactionsHeight + AppConfig.toolbarMenuHeight + 4.0;
return messageHeight + reactionsHeight + AppConfig.toolbarMenuHeight + 8.0;
}
double get _overheadContentHeight {
return widget.pangeaMessageEvent != null &&
widget.overlayController.selectedToken != null
? AppConfig.toolbarMaxHeight
: 40.0;
return (widget.pangeaMessageEvent != null &&
widget.overlayController.selectedToken != null
? AppConfig.toolbarMaxHeight
: 40.0) +
4.0;
}
double? get _wordCardLeftOffset {

View file

@ -40,8 +40,10 @@ class OverMessageOverlay extends StatelessWidget {
controller.columnWidth -
(controller.showDetails ? FluffyThemes.columnWidth : 0),
),
if (!controller.shouldScroll)
if (!controller.shouldScroll) ...[
WordCardSwitcher(controller: controller),
const SizedBox(height: 4.0),
],
CompositedTransformTarget(
link: MatrixState.pAnyState
.layerLinkAndKey(