Device manager - current session expandable details (PSG-644) (#9185)
* split current device section into component * add dropdown button for currentsession device details * test currentdevicesection * remove unnecc beforeEach * update type imports * i18n and lint
This commit is contained in:
parent
0c5ad457f0
commit
0dffc582e7
15 changed files with 642 additions and 43 deletions
|
@ -28,6 +28,7 @@
|
|||
@import "./components/views/messages/_MBeaconBody.pcss";
|
||||
@import "./components/views/messages/shared/_MediaProcessingError.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceDetails.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceExpandDetailsButton.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceSecurityCard.pcss";
|
||||
@import "./components/views/settings/devices/_DeviceTile.pcss";
|
||||
@import "./components/views/settings/devices/_FilteredDeviceList.pcss";
|
||||
|
@ -333,12 +334,12 @@
|
|||
@import "./views/toasts/_IncomingCallToast.pcss";
|
||||
@import "./views/toasts/_NonUrgentEchoFailureToast.pcss";
|
||||
@import "./views/typography/_Heading.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingButton.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingFeedback.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingHeader.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingList.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingPage.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingTask.pcss";
|
||||
@import "./views/user-onboarding/_UserOnboardingButton.pcss";
|
||||
@import "./views/verification/_VerificationShowSas.pcss";
|
||||
@import "./views/voip/CallView/_CallViewButtons.pcss";
|
||||
@import "./views/voip/_CallPreview.pcss";
|
||||
|
|
|
@ -17,18 +17,20 @@ limitations under the License.
|
|||
.mx_DeviceDetails {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
box-sizing: border-box;
|
||||
|
||||
width: 100%;
|
||||
|
||||
margin-top: $spacing-16;
|
||||
padding: $spacing-16;
|
||||
border-radius: 8px;
|
||||
border: 1px solid $system;
|
||||
border: 1px solid $quinary-content;
|
||||
}
|
||||
|
||||
.mx_DeviceDetails_section {
|
||||
padding-bottom: $spacing-16;
|
||||
margin-bottom: $spacing-16;
|
||||
border-bottom: 1px solid $system;
|
||||
border-bottom: 1px solid $quinary-content;
|
||||
|
||||
&:last-child {
|
||||
padding-bottom: 0;
|
||||
|
|
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
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_DeviceExpandDetailsButton {
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
background: transparent;
|
||||
|
||||
border-radius: 4px;
|
||||
color: $secondary-content;
|
||||
|
||||
--icon-transform: rotate(-90deg);
|
||||
}
|
||||
|
||||
.mx_DeviceExpandDetailsButton.mx_DeviceExpandDetailsButton_expanded {
|
||||
--icon-transform: rotate(0deg);
|
||||
|
||||
background: $system;
|
||||
}
|
||||
|
||||
.mx_DeviceExpandDetailsButton_icon {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
|
||||
transition: all 0.3s;
|
||||
transform: var(--icon-transform);
|
||||
transform-origin: center;
|
||||
}
|
|
@ -76,6 +76,12 @@ limitations under the License.
|
|||
mask-image: url('$(res)/img/feather-customised/x.svg');
|
||||
}
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_icon {
|
||||
padding: 0;
|
||||
height: 32px;
|
||||
width: 32px;
|
||||
}
|
||||
}
|
||||
|
||||
&.mx_AccessibleButton_kind_primary,
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6">
|
||||
<g fill="none" fill-rule="evenodd" stroke="#4e5054" stroke-linecap="round" stroke-width="1.3" transform="translate(1 1)">
|
||||
<g fill="none" fill-rule="evenodd" stroke="currentColor" stroke-linecap="round" stroke-width="1.3" transform="translate(1 1)">
|
||||
<path d="m.5.5 3.85868526 3.25422271"/>
|
||||
<path d="m8.13193273.56042139-3.77324747 3.19380132"/>
|
||||
</g>
|
||||
|
|
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 340 B |
Loading…
Add table
Add a link
Reference in a new issue