Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Fix forwarding UI papercuts (#8482)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonBrandner authored May 3, 2022
1 parent 2e9c2dd commit af78356
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions res/css/views/dialogs/_ForwardDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ limitations under the License.
margin-top: 24px;
}

.mx_ForwardList_resultsList {
padding-right: 8px;
}

.mx_ForwardList_entry {
display: flex;
justify-content: space-between;
Expand Down
3 changes: 2 additions & 1 deletion src/components/views/dialogs/ForwardDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const Entry: React.FC<IEntryProps> = ({ room, type, content, matrixClient: cli,
<AccessibleTooltipButton
className="mx_ForwardList_roomButton"
onClick={jumpToRoom}
title={_t("Open link")}
title={_t("Open room")}
yOffset={-20}
alignment={Alignment.Top}
>
Expand Down Expand Up @@ -261,6 +261,7 @@ const ForwardDialog: React.FC<IProps> = ({ matrixClient: cli, event, permalinkCr
{ rooms.length > 0 ? (
<div className="mx_ForwardList_results">
<TruncatedList
className="mx_ForwardList_resultsList"
truncateAt={truncateAt}
createOverflowElement={overflowTile}
getChildren={(start, end) => rooms.slice(start, end).map(room =>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -2555,7 +2555,7 @@
"You don't have permission to do this": "You don't have permission to do this",
"Sending": "Sending",
"Sent": "Sent",
"Open link": "Open link",
"Open room": "Open room",
"Send": "Send",
"Forward message": "Forward message",
"Message preview": "Message preview",
Expand Down

0 comments on commit af78356

Please sign in to comment.