element-web/res/css/views/settings
David Baker 3342aa5ff8
Refactor some logic into common AvatarSetting component (#12544)
* Refactor some logic into common AvatarSetting component

We duplicated some of the logic of setting avatars between profiles &
rooms. This pulls some of that logic into the AvatarSetting component
and hopefully make things a little simpler.

* Unsed import

* Convert JS based hover to CSS

* Remove unnecessary container

* Test avatar-as-file path

* Test file upload

* Unused imports

* Add test for RoomProfileSettings

* Test removing room avatar

* Move upload control CSS too

* Remove commented code

Co-authored-by: Florian Duros <florianduros@element.io>

* Prettier

* Coments & move style to inline as per PR suggestion

* Better test names

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Fix test

Upload input doesn't have that class anymore

---------

Co-authored-by: Florian Duros <florianduros@element.io>
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2024-05-21 10:37:02 +00:00
..
tabs Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
_AvatarSetting.pcss Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
_CrossSigningPanel.pcss Fix: <detail> HTML elements clickable area too wide. (#11666) 2023-10-12 08:50:49 +00:00
_CryptographyPanel.pcss Use semantic headings in user settings Security (#10774) 2023-05-18 22:32:10 +00:00
_FontScalingPanel.pcss Use browser's font size instead of hardcoded 16px as root font size (#12246) 2024-02-21 11:23:07 +00:00
_ImageSizePanel.pcss Use semantic headings in user settings Appearance (#10827) 2023-05-21 21:12:11 +00:00
_IntegrationManager.pcss Refine styles of menus, toasts, popovers, and modals (#12332) 2024-03-13 13:38:32 +00:00
_JoinRuleSettings.pcss Allow setting knock room directory visibility (#11529) 2023-09-08 01:00:48 +00:00
_KeyboardShortcut.pcss Compound color pass (#11079) 2023-07-12 17:46:49 +00:00
_LayoutSwitcher.pcss Refine styles of controls to match Compound (#12299) 2024-03-05 04:25:47 +00:00
_NotificationPusherSettings.pcss GYU: Account Notification Settings (#11008) 2023-06-29 15:46:31 +00:00
_Notifications.pcss Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
_NotificationSettings2.pcss Compound Typography pass regression fixes (#11189) 2023-07-04 16:54:28 +00:00
_PhoneNumbers.pcss Conform the style rules of GeneralUserSettingsTab.tsx to the style guide (#10595) 2023-05-12 10:33:01 +00:00
_PowerLevelSelector.pcss Change user permission by using a new apply button (#12346) 2024-03-19 13:45:23 +00:00
_ProfileSettings.pcss Refactor some logic into common AvatarSetting component (#12544) 2024-05-21 10:37:02 +00:00
_SecureBackupPanel.pcss Fix: <detail> HTML elements clickable area too wide. (#11666) 2023-10-12 08:50:49 +00:00
_SetIdServer.pcss Use semantic headings in user settings - discovery (#10838) 2023-05-24 02:37:10 +00:00
_SetIntegrationManager.pcss Use semantic headings in user settings - integrations and account deletion (#10837) 2023-05-17 07:52:44 +00:00
_SettingsFieldset.pcss Compound Typography pass (#11103) 2023-06-29 10:30:25 +00:00
_SpellCheckLanguages.pcss use semantic headings for spellcheck and language (#10959) 2023-05-23 23:34:56 +00:00
_ThemeChoicePanel.pcss Fix: Theme selector radio button not aligned in center with the text (#11676) 2023-09-28 10:26:01 +00:00
_UpdateCheckButton.pcss Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00