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

Commit b379a62

Browse files
committed
Merge branch 'develop' into release-v1.0.0
2 parents 5c5593d + 5b9a2fb commit b379a62

File tree

19 files changed

+101
-55
lines changed

19 files changed

+101
-55
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/context_menus/_TopLeftMenu.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ limitations under the License.
3131
mask-image: url('$(res)/img/feather-icons/home.svg');
3232
}
3333

34-
li.mx_TopLeftMenu_icon_welcome::after {
35-
mask-image: url('$(res)/img/feather-icons/gift.svg');
36-
}
37-
3834
li.mx_TopLeftMenu_icon_settings::after {
3935
mask-image: url('$(res)/img/feather-icons/settings.svg');
4036
}

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 {

res/img/feather-icons/gift.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

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/context_menus/TopLeftMenu.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class TopLeftMenu extends React.Component {
2626
constructor() {
2727
super();
2828
this.viewHomePage = this.viewHomePage.bind(this);
29-
this.viewWelcomePage = this.viewWelcomePage.bind(this);
3029
this.openSettings = this.openSettings.bind(this);
3130
this.signIn = this.signIn.bind(this);
3231
this.signOut = this.signOut.bind(this);
@@ -67,9 +66,6 @@ export class TopLeftMenu extends React.Component {
6766

6867
return <div className="mx_TopLeftMenu">
6968
{homePageSection}
70-
<ul className="mx_TopLeftMenu_section">
71-
<li className="mx_TopLeftMenu_icon_welcome" onClick={this.viewWelcomePage}>{_t("Welcome")}</li>
72-
</ul>
7369
<ul className="mx_TopLeftMenu_section">
7470
<li className="mx_TopLeftMenu_icon_settings" onClick={this.openSettings}>{_t("Settings")}</li>
7571
</ul>
@@ -82,11 +78,6 @@ export class TopLeftMenu extends React.Component {
8278
this.closeMenu();
8379
}
8480

85-
viewWelcomePage() {
86-
dis.dispatch({action: 'view_welcome_page'});
87-
this.closeMenu();
88-
}
89-
9081
openSettings() {
9182
dis.dispatch({action: 'view_user_settings'});
9283
this.closeMenu();

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> " +

0 commit comments

Comments
 (0)