Merge branch 'feat/desktop-offline' into feat/do-composer-panel

This commit is contained in:
Linus Rath
2026-11-04 17:31:34 +01:00
2 changed files with 9 additions and 5 deletions
@@ -102,11 +102,15 @@ describe('the folded column\'s drawer (default layout)', () => {
expect(inDrawer).toBe(docked);
});
it('mirrors the collapse arrows in RTL, where the drawer comes from the right', () => {
// RTL: globals.css mirrors the chevrons icons; a flip of their own as well would turn them back.
it('leaves the collapse arrows to the global RTL mirror, where the drawer comes from the right', () => {
const arrow = () => screen.getByTestId('sidebar-collapse').querySelector('svg')!.getAttribute('class') ?? '';
render(<Sidebar mailboxes={mailboxes} selectedMailbox="inbox" />);
expect(screen.getByTestId('sidebar-collapse').querySelector('svg')!.getAttribute('class')).toContain('rtl:-scale-x-100');
expect(arrow()).toMatch(/tabler-icon-chevrons-(left|right)/);
expect(arrow()).not.toMatch(/rtl:/);
openFromAllFolders();
expect(screen.getByTestId('sidebar-collapse').querySelector('svg')!.getAttribute('class')).toContain('rtl:-scale-x-100');
expect(arrow()).toMatch(/tabler-icon-chevrons-(left|right)/);
expect(arrow()).not.toMatch(/rtl:/);
});
it('keeps Tab and Shift+Tab inside while open', () => {
+2 -2
View File
@@ -2143,8 +2143,8 @@ function SidebarImpl({
data-testid="sidebar-collapse"
title={isCollapsed ? t("expand_tooltip") : t("collapse_tooltip")}
>
{/* The arrows point the way the column goes: mirrored in RTL, where it sits at the right. */}
{isCollapsed ? <ChevronsRight className="w-4 h-4 rtl:-scale-x-100" /> : <ChevronsLeft className="w-4 h-4 rtl:-scale-x-100" />}
{/* The arrows point the way the column goes; the app's global RTL mirror turns them in RTL. */}
{isCollapsed ? <ChevronsRight className="w-4 h-4" /> : <ChevronsLeft className="w-4 h-4" />}
</Button>
{/* The account switcher heads the folders by default, with the