Device manager - rename session (PSG-528) (#9282)
* split heading into component * switch between editing and view * style file * basic tests * style device rename component * add loading state * kind of handle missing current device in drilled props * use local loading state, add basic error message * integration-ish test rename * tidy * fussy import ordering * strict errors
This commit is contained in:
parent
b8bb8f163a
commit
4fec436883
19 changed files with 720 additions and 43 deletions
|
@ -28,6 +28,7 @@
|
|||
@import "./components/views/location/_ZoomButtons.pcss";
|
||||
@import "./components/views/messages/_MBeaconBody.pcss";
|
||||
@import "./components/views/messages/shared/_MediaProcessingError.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceDetailHeading.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceDetails.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceExpandDetailsButton.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceSecurityCard.pcss";
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
/*
|
||||
Copyright 2022 The Matrix.org Foundation C.I.C.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
.mx_DeviceDetailHeading {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameCta {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameForm {
|
||||
display: grid;
|
||||
grid-gap: $spacing-16;
|
||||
justify-content: left;
|
||||
grid-template-columns: 100%;
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameFormButtons {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
gap: $spacing-8;
|
||||
|
||||
.mx_Spinner {
|
||||
width: auto;
|
||||
flex-grow: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameFormInput {
|
||||
// override field styles
|
||||
margin: 0 0 $spacing-4 0 !important;
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameFormHeading {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.mx_DeviceDetailHeading_renameFormError {
|
||||
color: $alert;
|
||||
padding-right: $spacing-4;
|
||||
display: block;
|
||||
}
|
|
@ -35,6 +35,7 @@ limitations under the License.
|
|||
display: grid;
|
||||
grid-gap: $spacing-16;
|
||||
justify-content: left;
|
||||
grid-template-columns: 100%;
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue