Skip to content

Commit a350d86

Browse files
committed
Merge tag 'v3.67.0' into sc
* Fix block code styling in rich text editor ([\matrix-org#10246](matrix-org#10246)). Contributed by @alunturner. * Poll history: fetch more poll history ([\matrix-org#10235](matrix-org#10235)). Contributed by @kerryarchibald. * Sort short/exact emoji matches before longer incomplete matches ([\matrix-org#10212](matrix-org#10212)). Fixes element-hq/element-web#23210. Contributed by @grimhilt. * Poll history: detail screen ([\matrix-org#10172](matrix-org#10172)). Contributed by @kerryarchibald. * Provide a more detailed error message than "No known servers" ([\matrix-org#6048](matrix-org#6048)). Fixes element-hq/element-web#13247. Contributed by @aaronraimist. * Say when a call was answered from a different device ([\matrix-org#10224](matrix-org#10224)). * Widget permissions customizations using module api ([\matrix-org#10121](matrix-org#10121)). Contributed by @maheichyk. * Fix copy button icon overlapping with copyable text ([\matrix-org#10227](matrix-org#10227)). Contributed by @Adesh-Pandey. * Support joining non-peekable rooms via the module API ([\matrix-org#10154](matrix-org#10154)). Contributed by @maheichyk. * The "new login" toast does now display the same device information as in the settings. "No" does now open the device settings. "Yes, it was me" dismisses the toast. ([\matrix-org#10200](matrix-org#10200)). * Do not prompt for a password when doing a „reset all“ after login ([\matrix-org#10208](matrix-org#10208)). * Display "The sender has blocked you from receiving this message" error message instead of "Unable to decrypt message" ([\matrix-org#10202](matrix-org#10202)). Contributed by @florianduros. * Polls: show warning about undecryptable relations ([\matrix-org#10179](matrix-org#10179)). Contributed by @kerryarchibald. * Poll history: fetch last 30 days of polls ([\matrix-org#10157](matrix-org#10157)). Contributed by @kerryarchibald. * Poll history - ended polls list items ([\matrix-org#10119](matrix-org#10119)). Contributed by @kerryarchibald. * Remove threads labs flag and the ability to disable threads ([\matrix-org#9878](matrix-org#9878)). Fixes element-hq/element-web#24365. * Show a success dialog after setting up the key backup ([\matrix-org#10177](matrix-org#10177)). Fixes element-hq/element-web#24487. * Release Sign in with QR out of labs ([\matrix-org#10066](matrix-org#10066)). Contributed by @hughns. * Hide indent button in rte ([\matrix-org#10149](matrix-org#10149)). Contributed by @alunturner. * Add option to find own location in map views ([\matrix-org#10083](matrix-org#10083)). * Render poll end events in timeline ([\matrix-org#10027](matrix-org#10027)). Contributed by @kerryarchibald. * Use the room avatar as a placeholder in calls ([\matrix-org#10231](matrix-org#10231)). * Fix calls showing as 'connecting' after hangup ([\matrix-org#10223](matrix-org#10223)). * Stop access token overflowing the box ([\matrix-org#10069](matrix-org#10069)). Fixes element-hq/element-web#24023. Contributed by @sbjaj33. * Prevent multiple Jitsi calls started at the same time ([\matrix-org#10183](matrix-org#10183)). Fixes element-hq/element-web#23009. * Make localization keys compatible with agglutinative and/or SOV type languages ([\matrix-org#10159](matrix-org#10159)). Contributed by @luixxiul. * Add link to next file in the export ([\matrix-org#10190](matrix-org#10190)). Fixes element-hq/element-web#20272. Contributed by @grimhilt. * Ended poll tiles: add ended the poll message ([\matrix-org#10193](matrix-org#10193)). Fixes element-hq/element-web#24579. Contributed by @kerryarchibald. * Fix accidentally inverted condition for room ordering ([\matrix-org#10178](matrix-org#10178)). Fixes element-hq/element-web#24527. Contributed by @justjanne. * Re-focus the composer on dialogue quit ([\matrix-org#10007](matrix-org#10007)). Fixes element-hq/element-web#22832. Contributed by @Ashu999. * Try to resolve emails before creating a DM ([\matrix-org#10164](matrix-org#10164)). * Disable poll response loading test ([\matrix-org#10168](matrix-org#10168)). Contributed by @justjanne. * Fix email lookup in invite dialog ([\matrix-org#10150](matrix-org#10150)). Fixes element-hq/element-web#23353. * Remove duplicate white space characters from translation keys ([\matrix-org#10152](matrix-org#10152)). Contributed by @luixxiul. * Fix the caption of new sessions manager on Labs settings page for localization ([\matrix-org#10143](matrix-org#10143)). Contributed by @luixxiul. * Prevent start another DM with a user if one already exists ([\matrix-org#10127](matrix-org#10127)). Fixes element-hq/element-web#23138. * Remove white space characters before the horizontal ellipsis ([\matrix-org#10130](matrix-org#10130)). Contributed by @luixxiul. * Fix Selectable Text on 'Delete All' and 'Retry All' Buttons ([\matrix-org#10128](matrix-org#10128)). Fixes element-hq/element-web#23232. Contributed by @akshattchhabra. * Correctly Identify emoticons ([\matrix-org#10108](matrix-org#10108)). Fixes element-hq/element-web#19472. Contributed by @adarsh-sgh. * Remove a redundant white space ([\matrix-org#10129](matrix-org#10129)). Contributed by @luixxiul.
2 parents cee79b2 + ae8311f commit a350d86

File tree

870 files changed

+9468
-7544
lines changed

Some content is hidden

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

870 files changed

+9468
-7544
lines changed

.github/workflows/static_analysis.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ jobs:
5252
- "--noImplicitAny"
5353
steps:
5454
- uses: actions/checkout@v3
55+
with:
56+
ref: ${{ github.event.pull_request.head.sha }}
5557

5658
- name: Install Deps
5759
run: "scripts/ci/layered.sh"

CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,50 @@
1+
Changes in [3.67.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.67.0) (2023-02-28)
2+
=====================================================================================================
3+
4+
## ✨ Features
5+
* Fix block code styling in rich text editor ([\#10246](https://github.com/matrix-org/matrix-react-sdk/pull/10246)). Contributed by @alunturner.
6+
* Poll history: fetch more poll history ([\#10235](https://github.com/matrix-org/matrix-react-sdk/pull/10235)). Contributed by @kerryarchibald.
7+
* Sort short/exact emoji matches before longer incomplete matches ([\#10212](https://github.com/matrix-org/matrix-react-sdk/pull/10212)). Fixes vector-im/element-web#23210. Contributed by @grimhilt.
8+
* Poll history: detail screen ([\#10172](https://github.com/matrix-org/matrix-react-sdk/pull/10172)). Contributed by @kerryarchibald.
9+
* Provide a more detailed error message than "No known servers" ([\#6048](https://github.com/matrix-org/matrix-react-sdk/pull/6048)). Fixes vector-im/element-web#13247. Contributed by @aaronraimist.
10+
* Say when a call was answered from a different device ([\#10224](https://github.com/matrix-org/matrix-react-sdk/pull/10224)).
11+
* Widget permissions customizations using module api ([\#10121](https://github.com/matrix-org/matrix-react-sdk/pull/10121)). Contributed by @maheichyk.
12+
* Fix copy button icon overlapping with copyable text ([\#10227](https://github.com/matrix-org/matrix-react-sdk/pull/10227)). Contributed by @Adesh-Pandey.
13+
* Support joining non-peekable rooms via the module API ([\#10154](https://github.com/matrix-org/matrix-react-sdk/pull/10154)). Contributed by @maheichyk.
14+
* The "new login" toast does now display the same device information as in the settings. "No" does now open the device settings. "Yes, it was me" dismisses the toast. ([\#10200](https://github.com/matrix-org/matrix-react-sdk/pull/10200)).
15+
* Do not prompt for a password when doing a „reset all“ after login ([\#10208](https://github.com/matrix-org/matrix-react-sdk/pull/10208)).
16+
* Display "The sender has blocked you from receiving this message" error message instead of "Unable to decrypt message" ([\#10202](https://github.com/matrix-org/matrix-react-sdk/pull/10202)). Contributed by @florianduros.
17+
* Polls: show warning about undecryptable relations ([\#10179](https://github.com/matrix-org/matrix-react-sdk/pull/10179)). Contributed by @kerryarchibald.
18+
* Poll history: fetch last 30 days of polls ([\#10157](https://github.com/matrix-org/matrix-react-sdk/pull/10157)). Contributed by @kerryarchibald.
19+
* Poll history - ended polls list items ([\#10119](https://github.com/matrix-org/matrix-react-sdk/pull/10119)). Contributed by @kerryarchibald.
20+
* Remove threads labs flag and the ability to disable threads ([\#9878](https://github.com/matrix-org/matrix-react-sdk/pull/9878)). Fixes vector-im/element-web#24365.
21+
* Show a success dialog after setting up the key backup ([\#10177](https://github.com/matrix-org/matrix-react-sdk/pull/10177)). Fixes vector-im/element-web#24487.
22+
* Release Sign in with QR out of labs ([\#10066](https://github.com/matrix-org/matrix-react-sdk/pull/10066)). Contributed by @hughns.
23+
* Hide indent button in rte ([\#10149](https://github.com/matrix-org/matrix-react-sdk/pull/10149)). Contributed by @alunturner.
24+
* Add option to find own location in map views ([\#10083](https://github.com/matrix-org/matrix-react-sdk/pull/10083)).
25+
* Render poll end events in timeline ([\#10027](https://github.com/matrix-org/matrix-react-sdk/pull/10027)). Contributed by @kerryarchibald.
26+
27+
## 🐛 Bug Fixes
28+
* Use the room avatar as a placeholder in calls ([\#10231](https://github.com/matrix-org/matrix-react-sdk/pull/10231)).
29+
* Fix calls showing as 'connecting' after hangup ([\#10223](https://github.com/matrix-org/matrix-react-sdk/pull/10223)).
30+
* Stop access token overflowing the box ([\#10069](https://github.com/matrix-org/matrix-react-sdk/pull/10069)). Fixes vector-im/element-web#24023. Contributed by @sbjaj33.
31+
* Prevent multiple Jitsi calls started at the same time ([\#10183](https://github.com/matrix-org/matrix-react-sdk/pull/10183)). Fixes vector-im/element-web#23009.
32+
* Make localization keys compatible with agglutinative and/or SOV type languages ([\#10159](https://github.com/matrix-org/matrix-react-sdk/pull/10159)). Contributed by @luixxiul.
33+
* Add link to next file in the export ([\#10190](https://github.com/matrix-org/matrix-react-sdk/pull/10190)). Fixes vector-im/element-web#20272. Contributed by @grimhilt.
34+
* Ended poll tiles: add ended the poll message ([\#10193](https://github.com/matrix-org/matrix-react-sdk/pull/10193)). Fixes vector-im/element-web#24579. Contributed by @kerryarchibald.
35+
* Fix accidentally inverted condition for room ordering ([\#10178](https://github.com/matrix-org/matrix-react-sdk/pull/10178)). Fixes vector-im/element-web#24527. Contributed by @justjanne.
36+
* Re-focus the composer on dialogue quit ([\#10007](https://github.com/matrix-org/matrix-react-sdk/pull/10007)). Fixes vector-im/element-web#22832. Contributed by @Ashu999.
37+
* Try to resolve emails before creating a DM ([\#10164](https://github.com/matrix-org/matrix-react-sdk/pull/10164)).
38+
* Disable poll response loading test ([\#10168](https://github.com/matrix-org/matrix-react-sdk/pull/10168)). Contributed by @justjanne.
39+
* Fix email lookup in invite dialog ([\#10150](https://github.com/matrix-org/matrix-react-sdk/pull/10150)). Fixes vector-im/element-web#23353.
40+
* Remove duplicate white space characters from translation keys ([\#10152](https://github.com/matrix-org/matrix-react-sdk/pull/10152)). Contributed by @luixxiul.
41+
* Fix the caption of new sessions manager on Labs settings page for localization ([\#10143](https://github.com/matrix-org/matrix-react-sdk/pull/10143)). Contributed by @luixxiul.
42+
* Prevent start another DM with a user if one already exists ([\#10127](https://github.com/matrix-org/matrix-react-sdk/pull/10127)). Fixes vector-im/element-web#23138.
43+
* Remove white space characters before the horizontal ellipsis ([\#10130](https://github.com/matrix-org/matrix-react-sdk/pull/10130)). Contributed by @luixxiul.
44+
* Fix Selectable Text on 'Delete All' and 'Retry All' Buttons ([\#10128](https://github.com/matrix-org/matrix-react-sdk/pull/10128)). Fixes vector-im/element-web#23232. Contributed by @akshattchhabra.
45+
* Correctly Identify emoticons ([\#10108](https://github.com/matrix-org/matrix-react-sdk/pull/10108)). Fixes vector-im/element-web#19472. Contributed by @adarsh-sgh.
46+
* Remove a redundant white space ([\#10129](https://github.com/matrix-org/matrix-react-sdk/pull/10129)). Contributed by @luixxiul.
47+
148
Changes in [3.66.0](https://github.com/matrix-org/matrix-react-sdk/releases/tag/v3.66.0) (2023-02-14)
249
=====================================================================================================
350

cypress/e2e/crypto/crypto.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,10 @@ describe("Cryptography", function () {
183183
cy.contains(".mx_Dialog_primary:not([disabled])", "Continue").click();
184184
cy.contains(".mx_Dialog_title", "Setting up keys").should("exist");
185185
cy.contains(".mx_Dialog_title", "Setting up keys").should("not.exist");
186+
187+
cy.contains("Secure Backup successful").should("exist");
188+
cy.contains("Done").click();
189+
cy.contains("Secure Backup successful").should("not.exist");
186190
});
187191
return;
188192
});

cypress/e2e/crypto/decryption-failure.spec.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,14 @@ describe("Decryption Failure Bar", () => {
181181

182182
cy.contains(".mx_DecryptionFailureBar_button", "Reset").click();
183183

184+
// Set up key backup
184185
cy.get(".mx_Dialog").within(() => {
185186
cy.contains(".mx_Dialog_primary", "Continue").click();
186187
cy.get(".mx_CreateSecretStorageDialog_recoveryKey code").invoke("text").as("securityKey");
187188
// Clicking download instead of Copy because of https://github.com/cypress-io/cypress/issues/2851
188189
cy.contains(".mx_AccessibleButton", "Download").click();
189190
cy.contains(".mx_Dialog_primary:not([disabled])", "Continue").click();
191+
cy.contains("Done").click();
190192
});
191193

192194
cy.get(".mx_DecryptionFailureBar .mx_DecryptionFailureBar_message_headline").should(

cypress/e2e/location/location.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe("Location sharing", () => {
2727
};
2828

2929
const submitShareLocation = (): void => {
30-
cy.get('[data-test-id="location-picker-submit-button"]').click();
30+
cy.get('[data-testid="location-picker-submit-button"]').click();
3131
};
3232

3333
beforeEach(() => {

cypress/e2e/polls/polls.spec.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Matrix.org Foundation C.I.C.
2+
Copyright 2022 - 2023 The Matrix.org Foundation C.I.C.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -54,12 +54,12 @@ describe("Polls", () => {
5454
};
5555

5656
const getPollOption = (pollId: string, optionText: string): Chainable<JQuery> => {
57-
return getPollTile(pollId).contains(".mx_MPollBody_option .mx_StyledRadioButton", optionText);
57+
return getPollTile(pollId).contains(".mx_PollOption .mx_StyledRadioButton", optionText);
5858
};
5959

6060
const expectPollOptionVoteCount = (pollId: string, optionText: string, votes: number): void => {
6161
getPollOption(pollId, optionText).within(() => {
62-
cy.get(".mx_MPollBody_optionVoteCount").should("contain", `${votes} vote`);
62+
cy.get(".mx_PollOption_optionVoteCount").should("contain", `${votes} vote`);
6363
});
6464
};
6565

@@ -83,7 +83,6 @@ describe("Polls", () => {
8383
};
8484

8585
beforeEach(() => {
86-
cy.enableLabsFeature("feature_threadenabled");
8786
cy.window().then((win) => {
8887
win.localStorage.setItem("mx_lhs_size", "0"); // Collapse left panel for these tests
8988
});

cypress/e2e/threads/threads.spec.ts

Lines changed: 1 addition & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright 2022 The Matrix.org Foundation C.I.C.
2+
Copyright 2022 - 2023 The Matrix.org Foundation C.I.C.
33
44
Licensed under the Apache License, Version 2.0 (the "License");
55
you may not use this file except in compliance with the License.
@@ -19,17 +19,10 @@ limitations under the License.
1919
import { HomeserverInstance } from "../../plugins/utils/homeserver";
2020
import { MatrixClient } from "../../global";
2121

22-
function markWindowBeforeReload(): void {
23-
// mark our window object to "know" when it gets reloaded
24-
cy.window().then((w) => (w.beforeReload = true));
25-
}
26-
2722
describe("Threads", () => {
2823
let homeserver: HomeserverInstance;
2924

3025
beforeEach(() => {
31-
// Default threads to ON for this spec
32-
cy.enableLabsFeature("feature_threadenabled");
3326
cy.window().then((win) => {
3427
win.localStorage.setItem("mx_lhs_size", "0"); // Collapse left panel for these tests
3528
});
@@ -44,35 +37,6 @@ describe("Threads", () => {
4437
cy.stopHomeserver(homeserver);
4538
});
4639

47-
it("should reload when enabling threads beta", () => {
48-
markWindowBeforeReload();
49-
50-
// Turn off
51-
cy.openUserSettings("Labs").within(() => {
52-
// initially the new property is there
53-
cy.window().should("have.prop", "beforeReload", true);
54-
55-
cy.leaveBeta("Threaded messages");
56-
cy.wait(1000);
57-
// after reload the property should be gone
58-
cy.window().should("not.have.prop", "beforeReload");
59-
});
60-
61-
cy.get(".mx_MatrixChat", { timeout: 15000 }); // wait for the app
62-
markWindowBeforeReload();
63-
64-
// Turn on
65-
cy.openUserSettings("Labs").within(() => {
66-
// initially the new property is there
67-
cy.window().should("have.prop", "beforeReload", true);
68-
69-
cy.joinBeta("Threaded messages");
70-
cy.wait(1000);
71-
// after reload the property should be gone
72-
cy.window().should("not.have.prop", "beforeReload");
73-
});
74-
});
75-
7640
it("should be usable for a conversation", () => {
7741
let bot: MatrixClient;
7842
cy.getBot(homeserver, {

package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-react-sdk",
3-
"version": "3.66.0",
3+
"version": "3.67.0",
44
"description": "SDK for matrix.org using React",
55
"author": "matrix.org",
66
"repository": {
@@ -57,7 +57,7 @@
5757
"dependencies": {
5858
"@babel/runtime": "^7.12.5",
5959
"@matrix-org/analytics-events": "^0.4.0",
60-
"@matrix-org/matrix-wysiwyg": "^0.23.0",
60+
"@matrix-org/matrix-wysiwyg": "^1.1.1",
6161
"@matrix-org/react-sdk-module-api": "^0.0.3",
6262
"@sentry/browser": "^7.0.0",
6363
"@sentry/tracing": "^7.0.0",
@@ -93,7 +93,7 @@
9393
"maplibre-gl": "^2.0.0",
9494
"matrix-encrypt-attachment": "^1.0.3",
9595
"matrix-events-sdk": "0.0.1",
96-
"matrix-js-sdk": "23.3.0",
96+
"matrix-js-sdk": "23.4.0",
9797
"matrix-widget-api": "^1.1.1",
9898
"minimist": "^1.2.5",
9999
"opus-recorder": "^8.0.3",
@@ -112,7 +112,7 @@
112112
"react-transition-group": "^4.4.1",
113113
"rfc4648": "^1.4.0",
114114
"sanitize-filename": "^1.6.3",
115-
"sanitize-html": "^2.3.2",
115+
"sanitize-html": "2.8.0",
116116
"tar-js": "^0.3.0",
117117
"ua-parser-js": "^1.0.2",
118118
"url": "^0.11.0",
@@ -153,22 +153,24 @@
153153
"@types/escape-html": "^1.0.1",
154154
"@types/file-saver": "^2.0.3",
155155
"@types/flux": "^3.1.9",
156-
"@types/fs-extra": "^9.0.13",
156+
"@types/fs-extra": "^11.0.0",
157157
"@types/geojson": "^7946.0.8",
158+
"@types/glob-to-regexp": "^0.4.1",
158159
"@types/jest": "^29.2.1",
159-
"@types/katex": "^0.14.0",
160+
"@types/katex": "^0.16.0",
160161
"@types/lodash": "^4.14.168",
161162
"@types/modernizr": "^3.5.3",
162163
"@types/node": "^16",
164+
"@types/node-fetch": "^2.6.2",
163165
"@types/pako": "^2.0.0",
164166
"@types/parse5": "^6.0.0",
165167
"@types/qrcode": "^1.3.5",
166168
"@types/react": "17.0.49",
167169
"@types/react-beautiful-dnd": "^13.0.0",
168170
"@types/react-dom": "17.0.17",
169-
"@types/react-test-renderer": "^17.0.1",
170171
"@types/react-transition-group": "^4.4.0",
171-
"@types/sanitize-html": "^2.3.1",
172+
"@types/sanitize-html": "2.8.0",
173+
"@types/tar-js": "^0.3.2",
172174
"@types/ua-parser-js": "^0.7.36",
173175
"@types/zxcvbn": "^4.4.0",
174176
"@typescript-eslint/eslint-plugin": "^5.35.1",
@@ -210,7 +212,6 @@
210212
"postcss-scss": "^4.0.4",
211213
"prettier": "2.8.0",
212214
"raw-loader": "^4.0.2",
213-
"react-test-renderer": "^17.0.2",
214215
"rimraf": "^3.0.2",
215216
"stylelint": "^14.9.1",
216217
"stylelint-config-prettier": "^9.0.4",

res/css/_components.pcss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@
1818
@import "./components/views/beacon/_StyledLiveBeaconIcon.pcss";
1919
@import "./components/views/context_menus/_KebabContextMenu.pcss";
2020
@import "./components/views/dialogs/polls/_PollListItem.pcss";
21+
@import "./components/views/dialogs/polls/_PollListItemEnded.pcss";
2122
@import "./components/views/elements/_FilterDropdown.pcss";
23+
@import "./components/views/elements/_FilterTabGroup.pcss";
2224
@import "./components/views/elements/_LearnMore.pcss";
2325
@import "./components/views/location/_EnableLiveShare.pcss";
2426
@import "./components/views/location/_LiveDurationDropdown.pcss";
@@ -32,6 +34,7 @@
3234
@import "./components/views/messages/_MBeaconBody.pcss";
3335
@import "./components/views/messages/shared/_MediaProcessingError.pcss";
3436
@import "./components/views/pips/_WidgetPip.pcss";
37+
@import "./components/views/polls/_PollOption.pcss";
3538
@import "./components/views/settings/devices/_CurrentDeviceSection.pcss";
3639
@import "./components/views/settings/devices/_DeviceDetailHeading.pcss";
3740
@import "./components/views/settings/devices/_DeviceDetails.pcss";
@@ -48,6 +51,7 @@
4851
@import "./components/views/spaces/_QuickThemeSwitcher.pcss";
4952
@import "./components/views/typography/_Caption.pcss";
5053
@import "./compound/_Icon.pcss";
54+
@import "./compound/_SuccessDialog.pcss";
5155
@import "./structures/_AutoHideScrollbar.pcss";
5256
@import "./structures/_AutocompleteInput.pcss";
5357
@import "./structures/_BackdropPanel.pcss";
@@ -236,6 +240,7 @@
236240
@import "./views/messages/_MLocationBody.pcss";
237241
@import "./views/messages/_MNoticeBody.pcss";
238242
@import "./views/messages/_MPollBody.pcss";
243+
@import "./views/messages/_MPollEndBody.pcss";
239244
@import "./views/messages/_MStickerBody.pcss";
240245
@import "./views/messages/_MTextBody.pcss";
241246
@import "./views/messages/_MVideoBody.pcss";
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
/*
2+
Copyright 2023 The Matrix.org Foundation C.I.C.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
.mx_PollListItemEnded {
18+
width: 100%;
19+
display: flex;
20+
flex-direction: column;
21+
color: $primary-content;
22+
}
23+
24+
.mx_PollListItemEnded_title {
25+
display: grid;
26+
justify-content: left;
27+
align-items: center;
28+
grid-gap: $spacing-8;
29+
grid-template-columns: min-content 1fr min-content;
30+
grid-template-rows: auto;
31+
}
32+
33+
.mx_PollListItemEnded_icon {
34+
height: 14px;
35+
width: 14px;
36+
color: $quaternary-content;
37+
padding-left: $spacing-8;
38+
}
39+
40+
.mx_PollListItemEnded_date {
41+
font-size: $font-12px;
42+
color: $secondary-content;
43+
}
44+
45+
.mx_PollListItemEnded_question {
46+
white-space: nowrap;
47+
overflow: hidden;
48+
text-overflow: ellipsis;
49+
}
50+
51+
.mx_PollListItemEnded_answers {
52+
display: grid;
53+
grid-gap: $spacing-8;
54+
margin-top: $spacing-12;
55+
}
56+
57+
.mx_PollListItemEnded_voteCount {
58+
// 6px to match PollOption padding
59+
margin: $spacing-8 0 0 6px;
60+
}

0 commit comments

Comments
 (0)