Skip to content

Commit 9ff1fe8

Browse files
authored
Merge pull request element-hq#5535 from vector-im/luke/groups-new-group-settings
CSS for improving group creation UX, namely setting long description
2 parents a8bdde9 + aa4feb0 commit 9ff1fe8

4 files changed

Lines changed: 19 additions & 7 deletions

File tree

‎src/skins/vector/css/matrix-react-sdk/structures/_GroupView.scss‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,18 @@ limitations under the License.
304304
}
305305

306306
.mx_GroupView_groupDesc textarea {
307-
width: 50%;
307+
width: 100%;
308+
max-width: 100%;
308309
height: 150px;
309310
}
311+
312+
.mx_GroupView_groupDesc_placeholder {
313+
background-color: $info-plinth-bg-color;
314+
color: $info-plinth-fg-color;
315+
border-radius: 10px;
316+
text-align: center;
317+
318+
cursor: pointer;
319+
padding: 100px 20px;
320+
margin: 20px 0px;
321+
}

‎src/skins/vector/css/matrix-react-sdk/structures/_MyGroups.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ limitations under the License.
8787
}
8888

8989
.mx_MyGroups_placeholder {
90-
background-color: $group-my-groups-placeholder-bg;
91-
color: $group-my-groups-placeholder-fg;
90+
background-color: $info-plinth-bg-color;
91+
color: $info-plinth-fg-color;
9292
line-height: 400px;
9393
border-radius: 10px;
9494
text-align: center;

‎src/skins/vector/css/themes/_base.scss‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ $warning-color: #ff0064;
2222
$mention-user-pill-bg-color: #ff0064;
2323
$other-user-pill-bg-color: rgba(0, 0, 0, 0.1);
2424

25-
// groups
26-
$group-my-groups-placeholder-bg: #f7f7f7;
27-
$group-my-groups-placeholder-fg: #888;
25+
// informational plinth
26+
$info-plinth-bg-color: #f7f7f7;
27+
$info-plinth-fg-color: #888;
2828

2929
$preview-bar-bg-color: #f7f7f7;
3030

‎src/skins/vector/css/themes/_dark.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ $focus-brightness: 200%;
2121
$warning-color: #ff0064;
2222

2323
// groups
24-
$group-my-groups-placeholder-bg: #454545;
24+
$info-plinth-bg-color: #454545;
2525

2626
$other-user-pill-bg-color: rgba(255, 255, 255, 0.1);
2727

0 commit comments

Comments
 (0)