This repository was archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Couldn't load subscription status.
- Fork 815
Improved forwarding UI #5999
Merged
Merged
Improved forwarding UI #5999
Changes from 28 commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
b9b237f
Replace forwarding UI with dialog
robintown 74925b2
Test ForwardDialog
robintown 7fa8176
Remove old forwarding code
robintown 219c983
Use import instead of sdk.getComponent
robintown c96888c
Make ForwardDialog more readable
robintown 100efb1
Fix ForwardDialog crashing when rendering reply
robintown eb07f1f
Test that ForwardDialog can render replies
robintown 35cf0e1
Find components by name rather than class in ForwardDialog test
robintown 09ba74a
Disable forward buttons for rooms without send permissions
robintown eb779cd
Test that forward buttons are disabled for rooms without permission
robintown 5c10e1e
Fix lints
robintown bfba2b0
Push ForwardDialog scrollbar into the gutter
robintown 503301a
Make rooms in ForwardDialog clickable
robintown c39d964
Merge branch 'develop' into improved-forwarding-ui
robintown 7efbd2d
Hide unencrypted badge from ForwardDialog preview
robintown 64e828d
Merge branch 'develop' into improved-forwarding-ui
robintown e798b36
Decorate forward dialog room avatars
robintown 678b298
Merge branch 'develop' into improved-forwarding-ui
robintown 83224dc
Ensure forward list room decorations are aligned
robintown 6cb6c7f
Combine forward dialog room and DM lists
robintown f34d61c
Merge branch 'develop' into improved-forwarding-ui
robintown 7a04502
Iterate on forward dialog design feedback
robintown cd460a2
Adjust forward dialog copy
robintown 88e0e9b
Merge branch 'develop' into improved-forwarding-ui
robintown 4009176
Make myself the copyright holder for forward dialog code
robintown 6ced61b
Use camelCase
robintown 121ed5e
Pass Matrix client around as matrixClient
robintown 5c7da97
Give forward dialog send buttons an accessible label
robintown 5671452
Merge branch 'develop' into improved-forwarding-ui
robintown b032422
Fix whitespace lints
robintown 8efbdd0
Match forward dialog send failed indicator color with button
robintown c781679
Remove unused class
robintown 4ef69fc
Use settings hooks in forward dialog
robintown 59660df
Use a QueryMatcher for forward dialog filtering
robintown 992861a
Fix forward dialog tests
robintown a06306d
Merge branch 'develop' into improved-forwarding-ui
robintown bbd5fab
Fix type check
robintown e891d18
Add my email to my copyright notices
robintown b978672
Merge branch 'develop' into improved-forwarding-ui
robintown a8dab04
Remove mystery dot from forward dialog preview
robintown b00ad63
Fix whitespace nitpick
robintown 372f24f
Hide download links from forward dialog preview
robintown File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,153 @@ | ||
| /* | ||
| Copyright 2021 Robin Townsend. | ||
| 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_ForwardDialog { | ||
| width: 520px; | ||
| color: $primary-fg-color; | ||
| display: flex; | ||
| flex-direction: column; | ||
| flex-wrap: nowrap; | ||
| min-height: 0; | ||
| height: 80vh; | ||
|
|
||
| > h3 { | ||
| margin: 0 0 6px; | ||
| color: $secondary-fg-color; | ||
| font-size: $font-12px; | ||
| font-weight: $font-semi-bold; | ||
| line-height: $font-15px; | ||
| } | ||
|
|
||
| > .mx_ForwardDialog_preview { | ||
| max-height: 30%; | ||
| flex-shrink: 0; | ||
| overflow: scroll; | ||
|
|
||
| div { | ||
| pointer-events: none; | ||
| } | ||
|
|
||
| .mx_EventTile_msgOption { | ||
| display: none; | ||
| } | ||
|
|
||
| // When forwarding messages from encrypted rooms, EventTile will complain | ||
| // that our preview is unencrypted, which doesn't actually matter | ||
| .mx_EventTile_e2eIcon_unencrypted { | ||
| display: none; | ||
| } | ||
| } | ||
|
|
||
| > hr { | ||
| width: 100%; | ||
| border: none; | ||
| border-top: 1px solid $input-border-color; | ||
| margin: 12px 0; | ||
| } | ||
|
|
||
| > .mx_ForwardList { | ||
| display: contents; | ||
|
|
||
| .mx_SearchBox { | ||
| // To match the space around the title | ||
| margin: 0 0 15px 0; | ||
| flex-grow: 0; | ||
| } | ||
|
|
||
| .mx_ForwardList_content { | ||
| flex-grow: 1; | ||
| } | ||
|
|
||
| .mx_ForwardList_noResults { | ||
| display: block; | ||
| margin-top: 24px; | ||
| } | ||
|
|
||
| .mx_ForwardList_results { | ||
| &:not(:first-child) { | ||
| margin-top: 24px; | ||
| } | ||
|
|
||
| .mx_ForwardList_entry { | ||
| display: flex; | ||
| justify-content: space-between; | ||
| height: 32px; | ||
| padding: 6px; | ||
| border-radius: 8px; | ||
|
|
||
| &:hover { | ||
| background-color: $groupFilterPanel-bg-color; | ||
| } | ||
|
|
||
| .mx_ForwardList_roomButton { | ||
| display: flex; | ||
| margin-right: 12px; | ||
| min-width: 0; | ||
|
|
||
| .mx_DecoratedRoomAvatar { | ||
| margin-right: 12px; | ||
| } | ||
|
|
||
| .mx_ForwardList_entry_name { | ||
| font-size: $font-15px; | ||
| line-height: 30px; | ||
| overflow: hidden; | ||
| white-space: nowrap; | ||
| text-overflow: ellipsis; | ||
| margin-right: 12px; | ||
| } | ||
| } | ||
|
|
||
| .mx_ForwardList_sendButton { | ||
| position: relative; | ||
|
|
||
| &:not(.mx_ForwardList_canSend) .mx_ForwardList_sendLabel { | ||
| // Hide the "Send" label while preserving button size | ||
| visibility: hidden; | ||
| } | ||
|
|
||
| .mx_ForwardList_sendIcon, .mx_NotificationBadge { | ||
| position: absolute; | ||
| } | ||
|
|
||
| .mx_NotificationBadge { | ||
| opacity: 0.4; | ||
| } | ||
robintown marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| &.mx_ForwardList_sending .mx_ForwardList_sendIcon { | ||
| background-color: $button-primary-bg-color; | ||
| mask-image: url('$(res)/img/element-icons/circle-sending.svg'); | ||
| mask-position: center; | ||
| mask-repeat: no-repeat; | ||
| mask-size: 14px; | ||
| width: 14px; | ||
| height: 14px; | ||
| } | ||
|
|
||
| &.mx_ForwardList_sent .mx_ForwardList_sendIcon { | ||
| background-color: $button-primary-bg-color; | ||
| mask-image: url('$(res)/img/element-icons/circle-sent.svg'); | ||
| mask-position: center; | ||
| mask-repeat: no-repeat; | ||
| mask-size: 14px; | ||
| width: 14px; | ||
| height: 14px; | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.