element-web/res/css/views
Suguru Hirahara 232daaff68
Fix decryption failure bar covering the timeline (#10360)
* Use grid layout instead

- BEM naming style
- Increase block gap from 4px to 8px
- Use flexbox inside 'header' grid-area to let the buttons wrapped
- Use variables
- Remove 4px gap when one of the buttons is not rendered
- Change 'body' to 'message'
- Set 'align-self: start' to the icon and spinner

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Unset height of spinner

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Break lines at newline characters with white-space: pre-line

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit tests to check decryption failure bars on narrow timeline

- checkTimelineNarrow() looks for buttons by default
- Test indicator as well

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove a line

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Edit the test to have it check mx_EventTile_last only inside mx_RoomView_body

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix double underscores

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Fix double underscores - pcss

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Iterate - buttons at the bottom

- Set common spacing to buttons with variables
- Remove line breaks, yarn run i18n
- Set data-testid for headlines and buttons in case the tested strings would be displayed elsewhere simultaneously

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check waiting headline as well

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Increase spacing between the message and the buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Increase block gap between wrapped buttons for clickability

Apply 8px between wrapped buttons

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Revert bottom margin of buttons which are not expected to be wrapped

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Check visibility instead of existence

This commit removes data-testid from headlines and data-testid-button and checks whether the elements are really visible, not overflowing the viewport.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Remove redundant gap between 'mx_DecryptionFailureBar_start' and the bottom edge

This commit adds '.mx_DecryptionFailureBar--withEnd' class name to have it applied to the bar only if it has button(s). This way the bar is rendered with a flexbox and the row-gap declaration is respected only if there is a 'mx_DecryptionFailureBar--withEnd' element. The element  currently includes the button(s) only.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* lint - prettier

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

* Have Percy take a snapshot of the bar loading spinner before checkTimelineNarrow()

The loading spinner is likely to disappear while checking the bar on the narrow timeline.

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>

---------

Signed-off-by: Suguru Hirahara <luixxiul@users.noreply.github.com>
Co-authored-by: Kerry <kerrya@element.io>
2023-03-30 10:11:16 +01:00
..
audio_messages Fix blowout of waveform of the voice message player on narror UI 2023-02-20 23:55:59 +09:00
auth Use compound icons (#10292) 2023-03-08 11:11:01 +01:00
avatars Fix flaky Percy tests of ReplyChain (#10450) 2023-03-27 12:13:25 +00:00
beta Remove obsolete mx_BetaDot style rules introduced for Space release (#10286) 2023-03-07 11:03:39 +00:00
context_menus Only highlight focused menu item if focus is supposed to be visible (#9945) 2023-01-20 08:46:17 -05:00
dialogs Poll history - access poll history from room settings (#10356) 2023-03-13 22:08:59 +00:00
directory Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
elements Fix flaky Percy tests of ReplyChain (#10450) 2023-03-27 12:13:25 +00:00
emojipicker resolved emoji description text overflowing issue (#10028) 2023-01-31 16:28:47 +00:00
location Apply prettier formatting 2022-12-12 12:24:14 +01:00
messages Fix flaky Percy tests of ReplyChain (#10450) 2023-03-27 12:13:25 +00:00
polls/pollHistory Poll history - make poll history independent from dialogs (#10349) 2023-03-12 20:22:30 +00:00
right_panel Edit a test to check timestamp color's value on timeline and thread panel (#10265) 2023-03-02 17:14:41 +00:00
room_settings Disallow invalid inline style comments in stylesheets (#9099) 2022-07-27 14:39:29 +01:00
rooms Fix decryption failure bar covering the timeline (#10360) 2023-03-30 10:11:16 +01:00
settings Notifications: inline error message on notifications saving error (#10288) 2023-03-13 21:59:04 +00:00
spaces Fix space lock icon size (#9854) 2023-01-05 09:19:54 +01:00
terms Apply prettier formatting 2022-12-12 12:24:14 +01:00
toasts Apply prettier formatting 2022-12-12 12:24:14 +01:00
typography Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
user-onboarding The Welcome Home Screen: Return Button (#9089) 2022-08-12 12:55:31 +02:00
verification Rename PostCSS files to .pcss (#9013) 2022-07-15 14:53:23 +01:00
voip Prevent call durations from breaking onto multiple lines (#9944) 2023-01-20 08:45:55 -05:00