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

Commit e208ac0

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 54f069f + b6d6619 commit e208ac0

File tree

12 files changed

+84
-29
lines changed

12 files changed

+84
-29
lines changed

res/css/structures/_TabbedView.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ limitations under the License.
6464
background-color: $tab-label-icon-bg-color;
6565
mask-repeat: no-repeat;
6666
mask-size: 16px;
67-
width: 14px;
67+
width: 16px;
6868
height: 22px;
6969
mask-position: center;
7070
content: '';

res/css/views/elements/_ImageView.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ limitations under the License.
7777

7878
.mx_ImageView_cancel {
7979
position: absolute;
80-
top: 0px;
80+
// hack for mx_Dialog having a top padding of 40px
81+
top: 40px;
8182
right: 0px;
8283
padding: 35px;
8384
cursor: pointer;

res/css/views/rooms/_EventTile.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,10 @@ limitations under the License.
278278

279279
/* End to end encryption stuff */
280280

281+
.mx_EventTile_e2eIcon:hover {
282+
opacity: 1;
283+
}
284+
281285
.mx_EventTile_e2eIcon {
282286
display: block;
283287
position: absolute;
@@ -289,6 +293,7 @@ limitations under the License.
289293
mask-size: 14px;
290294
mask-repeat: no-repeat;
291295
mask-position: 0;
296+
opacity: 0.2;
292297
}
293298

294299
.mx_EventTile_e2eIcon_undecryptable, .mx_EventTile_e2eIcon_unverified {

src/components/structures/LoggedInView.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import sessionStore from '../../stores/SessionStore';
3131
import MatrixClientPeg from '../../MatrixClientPeg';
3232
import SettingsStore from "../../settings/SettingsStore";
3333
import RoomListStore from "../../stores/RoomListStore";
34+
import { getHomePageUrl } from '../../utils/pages';
3435

3536
import TagOrderActions from '../../actions/TagOrderActions';
3637
import RoomListActions from '../../actions/RoomListActions';
@@ -459,17 +460,7 @@ const LoggedInView = React.createClass({
459460

460461
case PageTypes.HomePage:
461462
{
462-
const pagesConfig = this.props.config.embeddedPages;
463-
let pageUrl = null;
464-
if (pagesConfig) {
465-
pageUrl = pagesConfig.homeUrl;
466-
}
467-
if (!pageUrl) {
468-
// This is a deprecated config option for the home page
469-
// (despite the name, given we also now have a welcome
470-
// page, which is not the same).
471-
pageUrl = this.props.config.welcomePageUrl;
472-
}
463+
const pageUrl = getHomePageUrl(this.props.config);
473464
pageElement = <EmbeddedPage className="mx_HomePage"
474465
url={pageUrl}
475466
scrollbar={true}

src/components/structures/MatrixChat.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ import * as Lifecycle from '../../Lifecycle';
4040
// LifecycleStore is not used but does listen to and dispatch actions
4141
require('../../stores/LifecycleStore');
4242
import PageTypes from '../../PageTypes';
43+
import { getHomePageUrl } from '../../utils/pages';
4344

4445
import createRoom from "../../createRoom";
4546
import KeyRequestHandler from '../../KeyRequestHandler';
@@ -1198,8 +1199,12 @@ export default React.createClass({
11981199
} else {
11991200
if (MatrixClientPeg.get().isGuest()) {
12001201
dis.dispatch({action: 'view_welcome_page'});
1201-
} else {
1202+
} else if (getHomePageUrl(this.props.config)) {
12021203
dis.dispatch({action: 'view_home_page'});
1204+
} else {
1205+
this.firstSyncPromise.promise.then(() => {
1206+
dis.dispatch({action: 'view_next_room'});
1207+
});
12031208
}
12041209
}
12051210
},

src/components/structures/ScrollPanel.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,14 @@ module.exports = React.createClass({
211211
// forget what we wanted, so don't overwrite the saved state unless
212212
// this appears to be a user-initiated scroll.
213213
if (sn.scrollTop != this._lastSetScroll) {
214+
// when scrolling, we don't care about disappearing typing notifs shrinking the timeline
215+
// this might cause the scrollbar to resize in case the max-height was not correct
216+
// but that's better than ending up with a lot of whitespace at the bottom of the timeline.
217+
// we need to above check because when showing the typing notifs, an onScroll event is also triggered
218+
if (!this.isAtBottom()) {
219+
this.clearBlockShrinking();
220+
}
221+
214222
this._saveScrollState();
215223
} else {
216224
debuglog("Ignoring scroll echo");

src/components/views/dialogs/RedesignFeedbackDialog.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ import { _t } from '../../../languageHandler';
2020

2121
export default (props) => {
2222
const existingIssuesUrl = "https://github.com/vector-im/riot-web/issues" +
23-
"?q=is%3Aopen+is%3Aissue+label%3Aredesign+sort%3Areactions-%2B1-desc";
24-
const newIssueUrl = "https://github.com/vector-im/riot-web/issues/new" +
25-
"?assignees=&labels=redesign&template=redesign_issue.md&title=";
23+
"?q=is%3Aopen+is%3Aissue+sort%3Areactions-%2B1-desc";
24+
const newIssueUrl = "https://github.com/vector-im/riot-web/issues/new";
2625

2726
const description1 =
28-
_t("Thanks for testing the Riot Redesign. " +
29-
"If you run into any bugs or visual issues, " +
30-
"please let us know on GitHub.");
27+
_t("If you run into any bugs or have feedback you'd like to share, " +
28+
"please let us know on GitHub.");
3129
const description2 = _t("To help avoid duplicate issues, " +
3230
"please <existingIssuesLink>view existing issues</existingIssuesLink> " +
3331
"first (and add a +1) or <newIssueLink>create a new issue</newIssueLink> " +

src/components/views/elements/LazyRenderList.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,6 @@ export default class LazyRenderList extends React.Component {
7373
}
7474
}
7575

76-
shouldComponentUpdate(nextProps, nextState) {
77-
const itemsChanged = nextProps.items !== this.props.items;
78-
const rangeChanged = nextState.renderRange !== this.state.renderRange;
79-
return itemsChanged || rangeChanged;
80-
}
81-
8276
render() {
8377
const {itemHeight, items, renderItem} = this.props;
8478

src/components/views/settings/tabs/HelpSettingsTab.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,26 @@ export default class HelpSettingsTab extends React.Component {
126126
);
127127
}
128128

129+
_renderCredits() {
130+
// Note: This is not translated because it is legal text.
131+
// Also, &nbsp; is ugly but necessary.
132+
return (
133+
<div className='mx_SettingsTab_section'>
134+
<span className='mx_SettingsTab_subheading'>{_t("Credits")}</span>
135+
<ul>
136+
<li>
137+
The <a href="themes/riot/img/backgrounds/valley.jpg" rel="noopener" target="_blank">
138+
default cover photo</a> is (C)&nbsp;
139+
<a href="https://www.flickr.com/golan" rel="noopener" target="_blank">Jesús Roncero</a>&nbsp;
140+
used under the terms of&nbsp;
141+
<a href="https://creativecommons.org/licenses/by-sa/4.0/" rel="noopener" target="_blank">
142+
CC-BY-SA 4.0</a>. No warranties are given.
143+
</li>
144+
</ul>
145+
</div>
146+
);
147+
}
148+
129149
render() {
130150
let faqText = _t('For help with using Riot, click <a>here</a>.', {}, {
131151
'a': (sub) => <a href="https://about.riot.im/need-help/" rel='noopener' target='_blank'>{sub}</a>,
@@ -211,6 +231,7 @@ export default class HelpSettingsTab extends React.Component {
211231
</div>
212232
</div>
213233
{this._renderLegal()}
234+
{this._renderCredits()}
214235
<div className='mx_SettingsTab_section mx_HelpSettingsTab_versions'>
215236
<span className='mx_SettingsTab_subheading'>{_t("Advanced")}</span>
216237
<div className='mx_SettingsTab_subsectionText'>

src/i18n/strings/en_EN.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@
528528
"Deactivating your account is a permanent action - be careful!": "Deactivating your account is a permanent action - be careful!",
529529
"Deactivate Account": "Deactivate Account",
530530
"Legal": "Legal",
531+
"Credits": "Credits",
531532
"For help with using Riot, click <a>here</a>.": "For help with using Riot, click <a>here</a>.",
532533
"For help with using Riot, click <a>here</a> or start a chat with our bot using the button below.": "For help with using Riot, click <a>here</a> or start a chat with our bot using the button below.",
533534
"Chat with Riot Bot": "Chat with Riot Bot",
@@ -1106,7 +1107,7 @@
11061107
"Manually export keys": "Manually export keys",
11071108
"You'll lose access to your encrypted messages": "You'll lose access to your encrypted messages",
11081109
"Are you sure you want to sign out?": "Are you sure you want to sign out?",
1109-
"Thanks for testing the Riot Redesign. If you run into any bugs or visual issues, please let us know on GitHub.": "Thanks for testing the Riot Redesign. If you run into any bugs or visual issues, please let us know on GitHub.",
1110+
"If you run into any bugs or have feedback you'd like to share, please let us know on GitHub.": "If you run into any bugs or have feedback you'd like to share, please let us know on GitHub.",
11101111
"To help avoid duplicate issues, please <existingIssuesLink>view existing issues</existingIssuesLink> first (and add a +1) or <newIssueLink>create a new issue</newIssueLink> if you can't find it.": "To help avoid duplicate issues, please <existingIssuesLink>view existing issues</existingIssuesLink> first (and add a +1) or <newIssueLink>create a new issue</newIssueLink> if you can't find it.",
11111112
"Report bugs & give feedback": "Report bugs & give feedback",
11121113
"Go back": "Go back",

0 commit comments

Comments
 (0)