Don't use the minimised width(68px) on the new room list (#29778)
* Don't toggle to the minimised left bar size. * Don't re-style old room list when at the minimum size * Only apply larger minimised with on new room list * Don't tell child views we are minimised for the new room list * move comment to the correct place * address PR comments * Don't wrap search text and add truncation down to a minimum of 50px * Put min-width on the button so that we don't have to hardcode the 50px * Keep the flex display, shrink and truncate just the search text and keep the shortcut * Update snapshots * Add comment for magic value * Make inner search text a span * Add e2e test for smallscreen to test responsiveness * Update snapshots * Forcing an empty commit to fix PR * Change minWidth to 224
This commit is contained in:
@@ -55,7 +55,7 @@ export function RoomListSearch({ activeSpace }: RoomListSearchProps): JSX.Elemen
|
||||
onClick={() => defaultDispatcher.fire(Action.OpenSpotlight)}
|
||||
>
|
||||
<Flex as="span" justify="space-between">
|
||||
{_t("action|search")}
|
||||
<span className="mx_RoomListSearch_search_text">{_t("action|search")}</span>
|
||||
<kbd>{IS_MAC ? "⌘ K" : _t(ALTERNATE_KEY_NAME[Key.CONTROL]) + " K"}</kbd>
|
||||
</Flex>
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user