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
Add maximise widget functionality #7098
Merged
Merged
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
0a6c20c
add maximise widget functionality
toger5 a9a2c41
fix linter issues
toger5 cb4ae5f
fix style lint issues
toger5 e68c8f1
Update src/components/structures/RoomView.tsx
toger5 8608c59
fix typo
toger5 bb543a2
typo
toger5 4cc316d
Remove caps "AND "
toger5 4a3b48d
fix spelling
toger5 5d14783
improove readibility for continue in for
toger5 74f9b93
review fixes
toger5 cfbdf40
reuse already added icons
toger5 ffb0af8
more container comment fixes
toger5 1155ae9
fix app options button
toger5 cd9d193
remove error message
toger5 a76e7ec
fix issue not beeing able to maximise
toger5 04e0b42
remove maxmimisedDrawer
toger5 21b9549
fix centering and overflow of appDrawer
toger5 38f8cfe
fix hover label "Minimise widget"->"Close"
toger5 0831b60
review fixes
toger5 fdf7b9f
add jest test for WidgetLayoutStore
toger5 afef1d0
Merge branch 'develop' into toger5/maximised_widgets
toger5 b06490e
change accent-color
toger5 b3c6526
another try
toger5 03ec030
Merge branch 'develop' into toger5/maximised_widgets
toger5 a23931b
I think I have it now...(accent related commit)
toger5 0bcb881
fix room state always overriding user settings
toger5 b1ef33b
fix container border width
toger5 ba4d09c
change icons, change border width
toger5 26d5cd1
Merge branch 'toger5/widget_container_border_width' into toger5/maxim…
toger5 2a8bba6
use $container-border-width where needed
toger5 6f3a1c0
fix style lint
toger5 fa35b44
add !important for widget card AppTileFullWidth
toger5 7f0c5d6
fix bug where a widget can be open twice
toger5 a8d2e5e
review fixes
toger5 3743b74
fix awkward ternary stack
toger5 c6e9c82
Merge branch 'develop' into toger5/maximised_widgets
toger5 704ddc8
remove the now deprecated collapse button url after merge
toger5 a2aa0dc
fix icons
toger5 fb02d81
fix icons 2
toger5 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 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
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
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 |
---|---|---|
|
@@ -35,13 +35,15 @@ limitations under the License. | |
mask-size: auto 12px; | ||
visibility: hidden; | ||
background-color: $accent; | ||
mask-image: url('$(res)/img/feather-customised/maximise.svg'); | ||
mask-image: url("$(res)/img/element-icons/maximise-expand.svg"); | ||
} | ||
|
||
&.mx_ViewSourceEvent_expanded .mx_ViewSourceEvent_toggle { | ||
mask-position: 0 bottom; | ||
margin-bottom: 7px; | ||
mask-image: url('$(res)/img/feather-customised/minimise.svg'); | ||
width: 10px; | ||
height: 10px; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These don't seem correct to me... The height is forcing the icon to appear at the top of the expanded event instead of the bottom, and the width seems too small. I believe they can just be removed, but please test yourself as well. To test this feature, enable "Show hidden events in timeline" in labs and look for a hidden event like a reaction. It will have an expand / collapse icon. When toggling between expand and collapse, the icon should always be under your cursor (bottom right of the event when expanded). |
||
mask-image: url("$(res)/img/element-icons/minimise-collapse.svg"); | ||
} | ||
} | ||
|
||
|
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
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
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the updated icon, I believe this should be changed to 5px to ensure the centre of the icon is always under the cursor when toggling states.