This repository was archived by the owner on Sep 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 19 files changed +101
-55
lines changed Expand file tree Collapse file tree 19 files changed +101
-55
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ limitations under the License.
64
64
background-color : $tab-label-icon-bg-color ;
65
65
mask-repeat : no-repeat ;
66
66
mask-size : 16px ;
67
- width : 14 px ;
67
+ width : 16 px ;
68
68
height : 22px ;
69
69
mask-position : center ;
70
70
content : ' ' ;
Original file line number Diff line number Diff line change @@ -31,10 +31,6 @@ limitations under the License.
31
31
mask-image : url (' $(res)/img/feather-icons/home.svg' );
32
32
}
33
33
34
- li .mx_TopLeftMenu_icon_welcome ::after {
35
- mask-image : url (' $(res)/img/feather-icons/gift.svg' );
36
- }
37
-
38
34
li .mx_TopLeftMenu_icon_settings ::after {
39
35
mask-image : url (' $(res)/img/feather-icons/settings.svg' );
40
36
}
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ limitations under the License.
77
77
78
78
.mx_ImageView_cancel {
79
79
position : absolute ;
80
- top : 0px ;
80
+ // hack for mx_Dialog having a top padding of 40px
81
+ top : 40px ;
81
82
right : 0px ;
82
83
padding : 35px ;
83
84
cursor : pointer ;
Original file line number Diff line number Diff line change @@ -278,6 +278,10 @@ limitations under the License.
278
278
279
279
/* End to end encryption stuff */
280
280
281
+ .mx_EventTile_e2eIcon :hover {
282
+ opacity : 1 ;
283
+ }
284
+
281
285
.mx_EventTile_e2eIcon {
282
286
display : block ;
283
287
position : absolute ;
@@ -289,6 +293,7 @@ limitations under the License.
289
293
mask-size : 14px ;
290
294
mask-repeat : no-repeat ;
291
295
mask-position : 0 ;
296
+ opacity : 0.2 ;
292
297
}
293
298
294
299
.mx_EventTile_e2eIcon_undecryptable , .mx_EventTile_e2eIcon_unverified {
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ import sessionStore from '../../stores/SessionStore';
31
31
import MatrixClientPeg from '../../MatrixClientPeg' ;
32
32
import SettingsStore from "../../settings/SettingsStore" ;
33
33
import RoomListStore from "../../stores/RoomListStore" ;
34
+ import { getHomePageUrl } from '../../utils/pages' ;
34
35
35
36
import TagOrderActions from '../../actions/TagOrderActions' ;
36
37
import RoomListActions from '../../actions/RoomListActions' ;
@@ -459,17 +460,7 @@ const LoggedInView = React.createClass({
459
460
460
461
case PageTypes . HomePage :
461
462
{
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 ) ;
473
464
pageElement = < EmbeddedPage className = "mx_HomePage"
474
465
url = { pageUrl }
475
466
scrollbar = { true }
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import * as Lifecycle from '../../Lifecycle';
40
40
// LifecycleStore is not used but does listen to and dispatch actions
41
41
require ( '../../stores/LifecycleStore' ) ;
42
42
import PageTypes from '../../PageTypes' ;
43
+ import { getHomePageUrl } from '../../utils/pages' ;
43
44
44
45
import createRoom from "../../createRoom" ;
45
46
import KeyRequestHandler from '../../KeyRequestHandler' ;
@@ -1198,8 +1199,12 @@ export default React.createClass({
1198
1199
} else {
1199
1200
if ( MatrixClientPeg . get ( ) . isGuest ( ) ) {
1200
1201
dis . dispatch ( { action : 'view_welcome_page' } ) ;
1201
- } else {
1202
+ } else if ( getHomePageUrl ( this . props . config ) ) {
1202
1203
dis . dispatch ( { action : 'view_home_page' } ) ;
1204
+ } else {
1205
+ this . firstSyncPromise . promise . then ( ( ) => {
1206
+ dis . dispatch ( { action : 'view_next_room' } ) ;
1207
+ } ) ;
1203
1208
}
1204
1209
}
1205
1210
} ,
Original file line number Diff line number Diff line change @@ -211,6 +211,14 @@ module.exports = React.createClass({
211
211
// forget what we wanted, so don't overwrite the saved state unless
212
212
// this appears to be a user-initiated scroll.
213
213
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
+
214
222
this . _saveScrollState ( ) ;
215
223
} else {
216
224
debuglog ( "Ignoring scroll echo" ) ;
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export class TopLeftMenu extends React.Component {
26
26
constructor ( ) {
27
27
super ( ) ;
28
28
this . viewHomePage = this . viewHomePage . bind ( this ) ;
29
- this . viewWelcomePage = this . viewWelcomePage . bind ( this ) ;
30
29
this . openSettings = this . openSettings . bind ( this ) ;
31
30
this . signIn = this . signIn . bind ( this ) ;
32
31
this . signOut = this . signOut . bind ( this ) ;
@@ -67,9 +66,6 @@ export class TopLeftMenu extends React.Component {
67
66
68
67
return < div className = "mx_TopLeftMenu" >
69
68
{ homePageSection }
70
- < ul className = "mx_TopLeftMenu_section" >
71
- < li className = "mx_TopLeftMenu_icon_welcome" onClick = { this . viewWelcomePage } > { _t ( "Welcome" ) } </ li >
72
- </ ul >
73
69
< ul className = "mx_TopLeftMenu_section" >
74
70
< li className = "mx_TopLeftMenu_icon_settings" onClick = { this . openSettings } > { _t ( "Settings" ) } </ li >
75
71
</ ul >
@@ -82,11 +78,6 @@ export class TopLeftMenu extends React.Component {
82
78
this . closeMenu ( ) ;
83
79
}
84
80
85
- viewWelcomePage ( ) {
86
- dis . dispatch ( { action : 'view_welcome_page' } ) ;
87
- this . closeMenu ( ) ;
88
- }
89
-
90
81
openSettings ( ) {
91
82
dis . dispatch ( { action : 'view_user_settings' } ) ;
92
83
this . closeMenu ( ) ;
Original file line number Diff line number Diff line change @@ -20,14 +20,12 @@ import { _t } from '../../../languageHandler';
20
20
21
21
export default ( props ) => {
22
22
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" ;
26
25
27
26
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." ) ;
31
29
const description2 = _t ( "To help avoid duplicate issues, " +
32
30
"please <existingIssuesLink>view existing issues</existingIssuesLink> " +
33
31
"first (and add a +1) or <newIssueLink>create a new issue</newIssueLink> " +
You can’t perform that action at this time.
0 commit comments