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

Commit 5feb9e8

Browse files
authored
Merge branch 'develop' into t3chguy/fix/16622
2 parents 236fcec + 2e86d53 commit 5feb9e8

File tree

17 files changed

+210
-108
lines changed

17 files changed

+210
-108
lines changed

res/css/views/dialogs/_BetaFeedbackDialog.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ limitations under the License.
1616

1717
.mx_BetaFeedbackDialog {
1818
.mx_BetaFeedbackDialog_subheading {
19-
color: $secondary-fg-color;
19+
color: $primary-fg-color;
2020
font-size: $font-14px;
2121
line-height: $font-20px;
2222
margin-bottom: 24px;

res/css/views/messages/_MessageActionBar.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ limitations under the License.
8585
left: 0;
8686
height: 100%;
8787
width: 100%;
88+
mask-size: 18px;
8889
mask-repeat: no-repeat;
8990
mask-position: center;
9091
background-color: $message-action-bar-fg-color;

res/css/views/messages/_ReactionsRow.scss

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,55 @@ limitations under the License.
1717
.mx_ReactionsRow {
1818
margin: 6px 0;
1919
color: $primary-fg-color;
20+
21+
.mx_ReactionsRow_addReactionButton {
22+
position: relative;
23+
display: none; // show on hover of the .mx_EventTile
24+
width: 24px;
25+
height: 24px;
26+
vertical-align: middle;
27+
margin-left: 4px;
28+
29+
&::before {
30+
content: '';
31+
position: absolute;
32+
height: 100%;
33+
width: 100%;
34+
mask-size: 16px;
35+
mask-repeat: no-repeat;
36+
mask-position: center;
37+
background-color: $tertiary-fg-color;
38+
mask-image: url('$(res)/img/element-icons/room/message-bar/emoji.svg');
39+
}
40+
41+
&.mx_ReactionsRow_addReactionButton_active {
42+
display: inline-block; // keep showing whilst the context menu is shown
43+
}
44+
45+
&:hover, &.mx_ReactionsRow_addReactionButton_active {
46+
&::before {
47+
background-color: $primary-fg-color;
48+
}
49+
}
50+
}
51+
}
52+
53+
.mx_EventTile:hover .mx_ReactionsRow_addReactionButton {
54+
display: inline-block;
2055
}
2156

2257
.mx_ReactionsRow_showAll {
2358
text-decoration: none;
24-
font-size: $font-10px;
25-
font-weight: 600;
26-
margin-left: 6px;
27-
vertical-align: top;
28-
29-
&:hover,
30-
&:link,
31-
&:visited {
32-
color: $accent-color;
59+
font-size: $font-12px;
60+
line-height: $font-20px;
61+
margin-left: 4px;
62+
vertical-align: middle;
63+
64+
&:link, &:visited {
65+
color: $tertiary-fg-color;
66+
}
67+
68+
&:hover {
69+
color: $primary-fg-color;
3370
}
3471
}

res/css/views/messages/_ReactionsRowButton.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ limitations under the License.
1616

1717
.mx_ReactionsRowButton {
1818
display: inline-flex;
19-
line-height: $font-21px;
19+
line-height: $font-20px;
2020
margin-right: 6px;
21-
padding: 0 6px;
21+
padding: 1px 6px;
2222
border: 1px solid $reaction-row-button-border-color;
2323
border-radius: 10px;
2424
background-color: $reaction-row-button-bg-color;
2525
cursor: pointer;
2626
user-select: none;
27+
vertical-align: middle;
2728

2829
&:hover {
2930
border-color: $reaction-row-button-hover-border-color;
Lines changed: 5 additions & 5 deletions
Loading
Lines changed: 2 additions & 4 deletions
Loading

src/components/structures/SpaceRoomView.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,7 @@ const SpaceSetupFirstRooms = ({ space, title, description, onFinished }) => {
451451
value={roomNames[i]}
452452
onChange={ev => setRoomName(i, ev.target.value)}
453453
autoFocus={i === 2}
454+
disabled={busy}
454455
/>;
455456
});
456457

@@ -658,6 +659,7 @@ const SpaceSetupPrivateInvite = ({ space, onFinished }) => {
658659
ref={fieldRefs[i]}
659660
onValidate={validateEmailRules}
660661
autoFocus={i === 0}
662+
disabled={busy}
661663
/>;
662664
});
663665

src/components/views/dialogs/BetaFeedbackDialog.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const BetaFeedbackDialog: React.FC<IProps> = ({featureId, onFinished}) => {
5959
return (<QuestionDialog
6060
className="mx_BetaFeedbackDialog"
6161
hasCancelButton={true}
62-
title={_t("Beta feedback")}
62+
title={_t("%(featureName)s beta feedback", { featureName: info.title })}
6363
description={<React.Fragment>
6464
<div className="mx_BetaFeedbackDialog_subheading">
6565
{ _t(info.feedbackSubheading) }
@@ -87,6 +87,7 @@ const BetaFeedbackDialog: React.FC<IProps> = ({featureId, onFinished}) => {
8787
onChange={(ev) => {
8888
setComment(ev.target.value);
8989
}}
90+
autoFocus={true}
9091
/>
9192

9293
<StyledCheckbox

src/components/views/dialogs/SpaceSettingsDialog.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@ const SpaceSettingsDialog: React.FC<IProps> = ({ matrixClient: cli, space, onFin
116116

117117
<SpaceBasicSettings
118118
avatarUrl={avatarUrlForRoom(space, 80, 80, "crop")}
119-
avatarDisabled={!canSetAvatar}
119+
avatarDisabled={busy || !canSetAvatar}
120120
setAvatar={setNewAvatar}
121121
name={name}
122-
nameDisabled={!canSetName}
122+
nameDisabled={busy || !canSetName}
123123
setName={setName}
124124
topic={topic}
125-
topicDisabled={!canSetTopic}
125+
topicDisabled={busy || !canSetTopic}
126126
setTopic={setTopic}
127127
/>
128128

0 commit comments

Comments
 (0)