mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-29 22:58:51 +01:00
📱fix: set initial nav visibility for small screens (#3208)
* fix: hide nav on small screens by default * test: add spec for Nav component
This commit is contained in:
parent
81292bb4dd
commit
b8f2bee3fc
4 changed files with 136 additions and 0 deletions
8
client/test/resizeObserver.mock
Normal file
8
client/test/resizeObserver.mock
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
Object.defineProperty(window, 'ResizeObserver', {
|
||||
writable: true,
|
||||
value: jest.fn().mockImplementation(() => ({
|
||||
disconnect: jest.fn(),
|
||||
observe: jest.fn(),
|
||||
unobserve: jest.fn(),
|
||||
}))
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue