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

Commit fe3fe69

Browse files
authored
Merge branch 'develop' into yaya-usman/patch_2
2 parents b0ecfd3 + 949b3cc commit fe3fe69

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1214
-433
lines changed

res/css/structures/_ToastContainer.scss

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -108,26 +108,25 @@ limitations under the License.
108108
}
109109

110110
.mx_Toast_title {
111+
display: flex;
112+
align-items: center;
113+
column-gap: 8px;
111114
width: 100%;
112115
box-sizing: border-box;
113116

114117
h2 {
115-
grid-column: 1 / 3;
116-
grid-row: 1;
117118
margin: 0;
118119
font-size: $font-15px;
119120
font-weight: 600;
120121
display: inline;
121122
width: auto;
122-
vertical-align: middle;
123123
}
124124

125-
span {
126-
padding-left: 8px;
127-
float: right;
125+
.mx_Toast_title_countIndicator {
128126
font-size: $font-12px;
129127
line-height: $font-22px;
130128
color: $secondary-content;
129+
margin-inline-start: auto; // on the end side of the div
131130
}
132131
}
133132

@@ -137,17 +136,14 @@ limitations under the License.
137136
}
138137

139138
.mx_Toast_buttons {
140-
float: right;
141139
display: flex;
140+
justify-content: flex-end;
141+
column-gap: 5px;
142142

143143
.mx_AccessibleButton {
144144
min-width: 96px;
145145
box-sizing: border-box;
146146
}
147-
148-
.mx_AccessibleButton + .mx_AccessibleButton {
149-
margin-left: 5px;
150-
}
151147
}
152148

153149
.mx_Toast_description {

res/css/views/context_menus/_MessageContextMenu.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,22 @@ limitations under the License.
9090
mask-image: url('$(res)/img/element-icons/room/pin.svg');
9191
}
9292

93+
.mx_MessageContextMenu_iconCopy::before {
94+
mask-image: url($copy-button-url);
95+
}
96+
97+
.mx_MessageContextMenu_iconEdit::before {
98+
mask-image: url('$(res)/img/element-icons/room/message-bar/edit.svg');
99+
}
100+
101+
.mx_MessageContextMenu_iconReply::before {
102+
mask-image: url('$(res)/img/element-icons/room/message-bar/reply.svg');
103+
}
104+
105+
.mx_MessageContextMenu_iconReact::before {
106+
mask-image: url('$(res)/img/element-icons/room/message-bar/emoji.svg');
107+
}
108+
93109
.mx_MessageContextMenu_iconViewInRoom::before {
94110
mask-image: url('$(res)/img/element-icons/view-in-room.svg');
95111
}

res/css/views/elements/_CopyableText.scss

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,17 @@ limitations under the License.
1818
.mx_CopyableText {
1919
display: flex;
2020
justify-content: space-between;
21-
border-radius: 5px;
22-
border: solid 1px $light-fg-color;
23-
margin-bottom: 10px;
24-
margin-top: 10px;
25-
padding: 10px;
2621
width: max-content;
2722
max-width: 100%;
2823

24+
&.mx_CopyableText_border {
25+
border-radius: 5px;
26+
border: solid 1px $light-fg-color;
27+
margin-bottom: 10px;
28+
margin-top: 10px;
29+
padding: 10px;
30+
}
31+
2932
.mx_CopyableText_copyButton {
3033
flex-shrink: 0;
3134
width: 20px;

res/css/views/elements/_TagComposer.scss

Lines changed: 42 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ limitations under the License.
2929
margin-left: 16px; // distance from <Field>
3030
}
3131

32-
.mx_Field, .mx_Field input, .mx_AccessibleButton {
32+
.mx_Field,
33+
.mx_Field input,
34+
.mx_AccessibleButton {
3335
// So they look related to each other by feeling the same
3436
border-radius: 8px;
3537
}
@@ -39,39 +41,48 @@ limitations under the License.
3941
display: flex;
4042
flex-wrap: wrap;
4143
margin-top: 12px; // this plus 12px from the tags makes 24px from the input
44+
}
4245

43-
.mx_TagComposer_tag {
44-
padding: 6px 8px 8px 12px;
45-
position: relative;
46-
margin-right: 12px;
47-
margin-top: 12px;
48-
49-
// Cheaty way to get an opacified variable colour background
50-
&::before {
51-
content: '';
52-
border-radius: 20px;
53-
background-color: $tertiary-content;
54-
opacity: 0.15;
55-
position: absolute;
56-
top: 0;
57-
left: 0;
58-
width: 100%;
59-
height: 100%;
60-
61-
// Pass through the pointer otherwise we have effectively put a whole div
62-
// on top of the component, which makes it hard to interact with buttons.
63-
pointer-events: none;
64-
}
65-
}
46+
.mx_Tag {
47+
margin-right: 12px;
48+
margin-top: 12px;
49+
}
50+
}
6651

67-
.mx_AccessibleButton {
68-
background-image: url('$(res)/img/subtract.svg');
69-
width: 16px;
70-
height: 16px;
71-
margin-left: 8px;
72-
display: inline-block;
52+
.mx_Tag {
53+
54+
font-size: $font-15px;
55+
56+
display: inline-flex;
57+
align-items: center;
58+
59+
gap: 8px;
60+
padding: 8px;
61+
border-radius: 8px;
62+
63+
color: $primary-content;
64+
background: $quinary-content;
65+
66+
>svg:first-child {
67+
width: 1em;
68+
color: $secondary-content;
69+
transform: scale(1.25);
70+
transform-origin: center;
71+
}
72+
73+
.mx_Tag_delete {
74+
border-radius: 50%;
75+
text-align: center;
76+
width: 1.066666em; // 16px;
77+
height: 1.066666em;
78+
line-height: 1em;
79+
color: $secondary-content;
80+
background: $system;
81+
position: relative;
82+
83+
svg {
84+
width: .5em;
7385
vertical-align: middle;
74-
cursor: pointer;
7586
}
7687
}
7788
}

0 commit comments

Comments
 (0)