Skip to content

Commit 970a029

Browse files
committed
Merge remote-tracking branch 'origin/develop' into dbkr/electron_dist_tweaks
2 parents f199849 + d5a5abe commit 970a029

2 files changed

Lines changed: 24 additions & 5 deletions

File tree

‎README.md‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ to build.
5959
web server.
6060

6161
Note that `npm run dist` is not supported on Windows, so Windows users can run `npm
62-
run build`, which will build all the necessary files into the `vector`
63-
directory. The version of Vector will not appear in Settings without
64-
using the dist script. You can then mount the vector directory on your
62+
run build`, which will build all the necessary files into the `webapp`
63+
directory. The version of Riot will not appear in Settings without
64+
using the dist script. You can then mount the `webapp` directory on your
6565
webserver to actually serve up the app, which is entirely static content.
6666

6767
config.json
6868
===========
6969

70-
You can configure the app by copying `vector/config.sample.json` to
71-
`vector/config.json` and customising it:
70+
You can configure the app by copying `config.sample.json` to
71+
`config.json` and customising it:
7272

7373
1. `default_hs_url` is the default home server url.
7474
1. `default_is_url` is the default identity server url (this is the server used
@@ -110,6 +110,11 @@ You can configure the app by copying `vector/config.sample.json` to
110110
1. `update_base_url` (electron app only): HTTPS URL to a web server to download
111111
updates from. This should be the path to the directory containing `install`
112112
and `update`.
113+
1. `cross_origin_renderer_url`: URL to a static HTML page hosting code to help display
114+
encrypted file attachments. This MUST be hosted on a completely separate domain to
115+
anything else since it is used to isolate the privileges of file attachments to this
116+
domain. Default: `usercontent.riot.im`. This needs to contain v1.html from
117+
https://github.com/matrix-org/usercontent/blob/master/v1.html
113118

114119
Running as a Desktop app
115120
========================

‎src/skins/vector/css/matrix-react-sdk/views/messages/MImageBody.css‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,17 @@ limitations under the License.
4444
vertical-align: middle;
4545
pointer-events: none;
4646
}
47+
48+
/* Remove the border and padding for iframes for download links. */
49+
.mx_MImageBody_download iframe {
50+
margin: 0px;
51+
padding: 0px;
52+
border: none;
53+
width: 100%;
54+
/* Set the height of the iframe to be 1 line of text.
55+
* Iframes don't automatically size themselves to fit their content.
56+
* So either we have to fix the height of the iframe using CSS or
57+
* use javascript's cross-origin postMessage API to communicate how
58+
* big the content of the iframe is. */
59+
height: 1.5em;
60+
}

0 commit comments

Comments
 (0)