Decorate forward dialog room avatars
Signed-off-by: Robin Townsend <robin@robin.town>
This commit is contained in:
parent
64e828d069
commit
e798b36f1d
3 changed files with 4 additions and 3 deletions
|
@ -89,7 +89,7 @@ limitations under the License.
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
|
||||||
.mx_BaseAvatar {
|
.mx_DecoratedRoomAvatar {
|
||||||
margin-right: 12px;
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ import BaseDialog from "./BaseDialog";
|
||||||
import {avatarUrlForUser} from "../../../Avatar";
|
import {avatarUrlForUser} from "../../../Avatar";
|
||||||
import EventTile from "../rooms/EventTile";
|
import EventTile from "../rooms/EventTile";
|
||||||
import SearchBox from "../../structures/SearchBox";
|
import SearchBox from "../../structures/SearchBox";
|
||||||
import RoomAvatar from "../avatars/RoomAvatar";
|
import DecoratedRoomAvatar from "../avatars/DecoratedRoomAvatar";
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
import AccessibleTooltipButton from "../elements/AccessibleTooltipButton";
|
||||||
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
import AutoHideScrollbar from "../../structures/AutoHideScrollbar";
|
||||||
|
@ -125,7 +125,7 @@ const Entry: React.FC<IEntryProps> = ({ room, event, cli, onFinished }) => {
|
||||||
|
|
||||||
return <div className="mx_ForwardList_entry">
|
return <div className="mx_ForwardList_entry">
|
||||||
<AccessibleButton className="mx_ForwardList_roomButton" onClick={jumpToRoom}>
|
<AccessibleButton className="mx_ForwardList_roomButton" onClick={jumpToRoom}>
|
||||||
<RoomAvatar room={room} height={32} width={32} />
|
<DecoratedRoomAvatar room={room} avatarSize={32} />
|
||||||
<span className="mx_ForwardList_entry_name">{ room.name }</span>
|
<span className="mx_ForwardList_entry_name">{ room.name }</span>
|
||||||
</AccessibleButton>
|
</AccessibleButton>
|
||||||
{ button }
|
{ button }
|
||||||
|
|
|
@ -253,6 +253,7 @@ export function mkStubRoom(roomId = null, name) {
|
||||||
tags: {},
|
tags: {},
|
||||||
setBlacklistUnverifiedDevices: jest.fn(),
|
setBlacklistUnverifiedDevices: jest.fn(),
|
||||||
on: jest.fn(),
|
on: jest.fn(),
|
||||||
|
off: jest.fn(),
|
||||||
removeListener: jest.fn(),
|
removeListener: jest.fn(),
|
||||||
getDMInviter: jest.fn(),
|
getDMInviter: jest.fn(),
|
||||||
name,
|
name,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue