Implement push notification toggle in device detail (#9308)

Co-authored-by: Travis Ralston <travisr@matrix.org>
This commit is contained in:
Germain 2022-09-27 13:35:54 +01:00 committed by GitHub
parent ace6591f43
commit 641cf28e4c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 269 additions and 3 deletions

View file

@ -46,6 +46,13 @@ limitations under the License.
.mx_DeviceDetails_sectionHeading {
margin: 0;
.mx_DeviceDetails_sectionSubheading {
display: block;
font-size: $font-12px;
color: $secondary-content;
line-height: $font-14px;
}
}
.mx_DeviceDetails_metadataTable {
@ -81,3 +88,10 @@ limitations under the License.
align-items: center;
gap: $spacing-4;
}
.mx_DeviceDetails_pushNotifications {
display: block;
.mx_ToggleSwitch {
float: right;
}
}

View file

@ -26,6 +26,10 @@ limitations under the License.
background-color: $togglesw-off-color;
opacity: 0.5;
&[aria-disabled="true"] {
cursor: not-allowed;
}
}
.mx_ToggleSwitch_enabled {