This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 833
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
author Michael Telatynski <7t3chguy@gmail.com> 1636561426 +0000 committer Michael Telatynski <7t3chguy@gmail.com> 1638456183 +0000 parent f40291d author Michael Telatynski <7t3chguy@gmail.com> 1636561426 +0000 committer Michael Telatynski <7t3chguy@gmail.com> 1638456101 +0000 Initial Spotlight Dialog work Iterate Spotlight i18n post-merge fix iterate pr Remove unused state update copy Iterate spotlight Iterate spotlight Iterate spotlight to show search results Fix spotlight behaviour Show parent spaces in Spotlight Clip the recent searches list Spotlight show MXID for DM results delint Fix spotlight search normalization tweak normalization some more separate people from rooms in spotlight results show results from selected space in spotlight Extract reusable room context details code Iterate spotlight implementation Apply suggestions from PR review delint Update invite iconography Iterate Space context menu to match Figma Fix chevron alignment Fix edge case for RoomListHeader on metaspaces Wire up general rageshake-driven feedback mechanism Add IA1.1 info toast add missing alt attribute delint delint tweak ia toast priority e2e test account for new toast autofocus feedback field and remove old subheading tweak copy i18n Iterate space panel colours to match Figma Iterate PR delint Fix feedback submission with object setting values
- Loading branch information
Showing
9 changed files
with
644 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,190 @@ | ||
/* | ||
Copyright 2021 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_SpotlightDialog_wrapper .mx_Dialog { | ||
border-radius: 16px; | ||
overflow-y: initial; | ||
position: relative; | ||
height: 60%; | ||
padding: 0; | ||
|
||
.mx_SpotlightDialog_keyboardPrompt { | ||
position: absolute; | ||
padding: 8px; | ||
border-radius: 8px; | ||
background-color: $background; | ||
top: -60px; | ||
left: 50%; | ||
transform: translateX(-50%); | ||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
color: $secondary-content; | ||
|
||
> span > div { | ||
display: inline-block; | ||
padding: 2px 4px; | ||
margin: 0 4px; | ||
border-radius: 6px; | ||
background-color: $quinary-content; | ||
vertical-align: middle; | ||
color: $tertiary-content; | ||
} | ||
} | ||
} | ||
|
||
.mx_SpotlightDialog { | ||
height: 100%; | ||
display: flex; | ||
flex-direction: column; | ||
|
||
.mx_Dialog_header { | ||
margin-bottom: 0; | ||
} | ||
|
||
.mx_SearchBox { | ||
margin: 0; | ||
border: none; | ||
border-bottom: 1px solid $system; | ||
|
||
> input { | ||
color: $tertiary-content; | ||
font-weight: normal; | ||
font-size: $font-15px; | ||
line-height: $font-24px; | ||
} | ||
} | ||
|
||
#mx_SpotlightDialog_content { | ||
margin: 16px; | ||
height: 100%; | ||
overflow-y: auto; | ||
|
||
.mx_SpotlightDialog_section { | ||
> h4 { | ||
font-weight: $font-semi-bold; | ||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
color: $secondary-content; | ||
margin-top: 0; | ||
} | ||
|
||
& + .mx_SpotlightDialog_section { | ||
margin-top: 24px; | ||
} | ||
} | ||
|
||
.mx_SpotlightDialog_recentlyViewed { | ||
> div { | ||
display: flex; | ||
white-space: nowrap; | ||
overflow-x: auto; | ||
} | ||
|
||
.mx_AccessibleButton { | ||
border: 1px solid $quinary-content; | ||
border-radius: 8px; | ||
padding: 6px 8px 4px 6px; | ||
color: $primary-content; | ||
font-size: $font-15px; | ||
line-height: $font-20px; | ||
display: inline-block; | ||
|
||
.mx_BaseAvatar { | ||
margin-right: 8px; | ||
display: inline-block; | ||
height: 20px; | ||
} | ||
|
||
& + .mx_AccessibleButton { | ||
margin-left: 12px; | ||
} | ||
|
||
&:hover, &[aria-selected=true] { | ||
background-color: $quinary-content; | ||
} | ||
} | ||
} | ||
|
||
.mx_SpotlightDialog_results, | ||
.mx_SpotlightDialog_recentSearches { | ||
.mx_AccessibleButton { | ||
padding: 6px 4px; | ||
border-radius: 8px; | ||
font-size: $font-15px; | ||
line-height: $font-24px; | ||
color: $primary-content; | ||
position: relative; | ||
display: flex; | ||
align-items: center; | ||
|
||
.mx_BaseAvatar { | ||
margin-right: 8px; | ||
display: inline-block; | ||
height: 20px; | ||
} | ||
|
||
&:hover, &[aria-selected=true] { | ||
background-color: $system; | ||
|
||
.mx_SpotlightDialog_enterPrompt { | ||
display: inline-block; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.mx_SpotlightDialog_result_details { | ||
margin-left: 8px; | ||
color: $tertiary-content; | ||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
} | ||
|
||
.mx_SpotlightDialog_recentSearches { | ||
overflow-y: hidden; | ||
height: calc(100% - 100px); | ||
|
||
> h4 { | ||
padding-left: 20px; | ||
position: relative; | ||
|
||
&::before { | ||
position: absolute; | ||
content: ""; | ||
width: 16px; | ||
height: 16px; | ||
left: 0; | ||
mask-repeat: no-repeat; | ||
mask-size: contain; | ||
mask-position: center; | ||
background-color: $secondary-content; | ||
mask-image: url("$(res)/img/element-icons/recent.svg"); | ||
} | ||
} | ||
} | ||
|
||
.mx_SpotlightDialog_enterPrompt { | ||
padding: 2px 4px; | ||
font-size: $font-12px; | ||
line-height: $font-15px; | ||
color: $tertiary-content; | ||
border-radius: 6px; | ||
background-color: $quinary-content; | ||
margin: 0 4px 0 auto; | ||
display: none; | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.