Merge pull request #2891 from matrix-org/dbkr/simplify_settings_dialog_css
Simplify settings dialog CSS
This commit is contained in:
commit
babed3e5ee
4 changed files with 24 additions and 32 deletions
|
@ -14,37 +14,29 @@ See the License for the specific language governing permissions and
|
||||||
limitations under the License.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
.mx_SettingsDialog {
|
// Not actually a component but things shared by settings components
|
||||||
.mx_Dialog {
|
.mx_UserSettingsDialog, .mx_RoomSettingsDialog {
|
||||||
height: 80%;
|
width: 90vw;
|
||||||
border-radius: 4px;
|
max-width: 1000px;
|
||||||
padding-top: 0;
|
// set the height too since tabbed view scrolls itself.
|
||||||
padding-right: 30px;
|
height: 80vh;
|
||||||
padding-left: 0;
|
|
||||||
|
|
||||||
.mx_TabbedView {
|
.mx_TabbedView {
|
||||||
top: 65px;
|
top: 65px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_TabbedView .mx_SettingsTab {
|
.mx_TabbedView .mx_SettingsTab {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
min-width: 580px;
|
min-width: 580px;
|
||||||
padding-right: 100px;
|
padding-right: 100px;
|
||||||
|
|
||||||
// Put some padding on the bottom to avoid the settings tab from
|
// Put some padding on the bottom to avoid the settings tab from
|
||||||
// colliding harshly with the dialog when scrolled down.
|
// colliding harshly with the dialog when scrolled down.
|
||||||
padding-bottom: 100px;
|
padding-bottom: 100px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mx_Dialog_title {
|
.mx_Dialog_title {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 16px;
|
margin-bottom: 24px;
|
||||||
margin-bottom: 24px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mx_Dialog_fixedWidth {
|
|
||||||
max-width: 1000px;
|
|
||||||
width: 90vw;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -597,8 +597,8 @@ export default React.createClass({
|
||||||
break;
|
break;
|
||||||
case 'view_user_settings': {
|
case 'view_user_settings': {
|
||||||
const UserSettingsDialog = sdk.getComponent("dialogs.UserSettingsDialog");
|
const UserSettingsDialog = sdk.getComponent("dialogs.UserSettingsDialog");
|
||||||
Modal.createTrackedDialog('User settings', '', UserSettingsDialog, {}, 'mx_SettingsDialog',
|
Modal.createTrackedDialog('User settings', '', UserSettingsDialog, {},
|
||||||
/*isPriority=*/false, /*isStatic=*/true);
|
/*className=*/null, /*isPriority=*/false, /*isStatic=*/true);
|
||||||
|
|
||||||
// View the welcome or home page if we need something to look at
|
// View the welcome or home page if we need something to look at
|
||||||
this._viewSomethingBehindModal();
|
this._viewSomethingBehindModal();
|
||||||
|
|
|
@ -120,7 +120,7 @@ class RoomViewStore extends Store {
|
||||||
const RoomSettingsDialog = sdk.getComponent("dialogs.RoomSettingsDialog");
|
const RoomSettingsDialog = sdk.getComponent("dialogs.RoomSettingsDialog");
|
||||||
Modal.createTrackedDialog('Room settings', '', RoomSettingsDialog, {
|
Modal.createTrackedDialog('Room settings', '', RoomSettingsDialog, {
|
||||||
roomId: payload.room_id || this._state.roomId,
|
roomId: payload.room_id || this._state.roomId,
|
||||||
}, 'mx_SettingsDialog', /*isPriority=*/false, /*isStatic=*/true);
|
}, /*className=*/null, /*isPriority=*/false, /*isStatic=*/true);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue