Skip to content

fix: remove reserved whitespace under user message bubble (#879) - #1096

Open
weed33834 wants to merge 1 commit into
chaitin:mainfrom
weed33834:fix/879-copy-button-whitespace
Open

fix: remove reserved whitespace under user message bubble (#879)#1096
weed33834 wants to merge 1 commit into
chaitin:mainfrom
weed33834:fix/879-copy-button-whitespace

Conversation

@weed33834

Copy link
Copy Markdown

修复 #879:用户消息复制按钮导致气泡下方多余留白

问题

用户消息增加复制按钮后,消息气泡下方固定出现一整行空白。根因:用户消息外层使用 pb-7,为绝对定位在 bottom-0 的复制按钮预留 28px 高度,按钮处于 opacity-0 时该预留空间仍参与布局。

修复

  • 移除用户消息外层的 pb-7
  • 复制按钮定位从 absolute bottom-0 right-0 改为 absolute right-1.5 top-1.5(悬浮于气泡右上角,不再占用布局空间)

效果

  • 气泡下方不再固定占用一整行空间
  • 复制按钮仍可通过悬停/键盘聚焦访问,Tooltip 与成功/失败提示行为不变
  • 含附件的用户消息布局不受影响

Closes #879

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

用户消息复制按钮导致气泡底部出现多余留白

1 participant