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

Commit d976818

Browse files
committed
Fix the header of Space landing page
Closes element-hq/element-web#21402 Signed-off-by: Suguru Hirahara <[email protected]>
1 parent 14807de commit d976818

File tree

3 files changed

+24
-18
lines changed

3 files changed

+24
-18
lines changed

res/css/structures/_SpaceRoomView.scss

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -254,13 +254,26 @@ $SpaceRoomViewInnerWidth: 428px;
254254
flex-direction: column;
255255
min-width: 0;
256256

257-
> .mx_BaseAvatar {
258-
width: 80px;
259-
}
257+
.mx_SpaceRoomView_landing_header {
258+
display: flex;
259+
justify-content: space-between;
260+
261+
.mx_BaseAvatar {
262+
width: 80px;
263+
264+
.mx_BaseAvatar_image {
265+
border-radius: 12px;
266+
}
267+
}
260268

261-
> .mx_BaseAvatar_image,
262-
> .mx_BaseAvatar > .mx_BaseAvatar_image {
263-
border-radius: 12px;
269+
.mx_SpaceFeedbackPrompt {
270+
padding: 7px; // 8px - 1px border
271+
border: 1px solid rgba($primary-content, .1);
272+
border-radius: 8px;
273+
width: max-content;
274+
height: fit-content;
275+
margin-left: 24px;
276+
}
264277
}
265278

266279
.mx_SpaceRoomView_landing_name {
@@ -360,14 +373,6 @@ $SpaceRoomViewInnerWidth: 428px;
360373
margin: 0 0 20px;
361374
flex: 0;
362375
}
363-
364-
.mx_SpaceFeedbackPrompt {
365-
padding: 7px; // 8px - 1px border
366-
border: 1px solid rgba($primary-content, .1);
367-
border-radius: 8px;
368-
width: max-content;
369-
margin: 0 0 -40px auto; // collapse its own height to not push other components down
370-
}
371376
}
372377

373378
.mx_SpaceRoomView_privateScope {

res/css/views/spaces/_SpaceCreateMenu.scss

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,13 @@ $spacePanelWidth: 68px;
112112
position: relative;
113113
font-size: inherit;
114114
line-height: inherit;
115-
margin-right: auto;
115+
margin-right: 8px;
116116
}
117117

118118
.mx_AccessibleButton_kind_link {
119119
color: $accent;
120120
position: relative;
121121
padding: 0;
122-
margin-left: 8px;
123122
font-size: inherit;
124123
line-height: inherit;
125124
}

src/components/structures/SpaceRoomView.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,10 @@ const SpaceLanding = ({ space }: { space: Room }) => {
479479
};
480480

481481
return <div className="mx_SpaceRoomView_landing">
482-
<SpaceFeedbackPrompt />
483-
<RoomAvatar room={space} height={80} width={80} viewAvatarOnClick={true} />
482+
<div className="mx_SpaceRoomView_landing_header">
483+
<RoomAvatar room={space} height={80} width={80} viewAvatarOnClick={true} />
484+
<SpaceFeedbackPrompt />
485+
</div>
484486
<div className="mx_SpaceRoomView_landing_name">
485487
<RoomName room={space}>
486488
{ (name) => {

0 commit comments

Comments
 (0)