mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Hide "Recently Used" section of model selector if there are less than 5 models
This commit is contained in:
3 files changed
+263
-2
No files matched your search
@@ -35,6 +35,9 @@ Object.defineProperty(window, 'scrollTo', {
|
||||
value: vi.fn(),
|
||||
});
|
||||
|
||||
// Mock Element.scrollIntoView
|
||||
Element.prototype.scrollIntoView = vi.fn();
|
||||
|
||||
// Mock IntersectionObserver
|
||||
global.IntersectionObserver = vi.fn().mockImplementation((_callback) => ({
|
||||
observe: vi.fn(),
|
||||
|
||||
Reference in new issue
Block a user