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

Commit 54ec7e6

Browse files
author
Germain
authored
Render space pills with square corners to match new avatar (#11632)
1 parent f60ba1c commit 54ec7e6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

res/css/views/elements/_Pill.pcss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,10 @@ limitations under the License.
8989
height: 16px;
9090
width: 16px;
9191
}
92+
93+
&.mx_SpacePill {
94+
border-top-left-radius: 8px;
95+
border-bottom-left-radius: 8px;
96+
padding-left: 4px;
97+
}
9298
}

src/components/views/elements/Pill.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const Pill: React.FC<PillProps> = ({ type: propType, url, inMessage, room
103103
const classes = classNames("mx_Pill", {
104104
mx_AtRoomPill: type === PillType.AtRoomMention,
105105
mx_RoomPill: type === PillType.RoomMention,
106-
mx_SpacePill: type === "space",
106+
mx_SpacePill: type === "space" || targetRoom?.isSpaceRoom(),
107107
mx_UserPill: type === PillType.UserMention,
108108
mx_UserPill_me: resourceId === MatrixClientPeg.safeGet().getUserId(),
109109
mx_EventPill: type === PillType.EventInOtherRoom || type === PillType.EventInSameRoom,

0 commit comments

Comments
 (0)