mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
Storybook: clear font size in room list item story (#32594)
* chore: clean added font size in room list item story * test: fix screenshot
This commit is contained in:
parent
c8b971ea72
commit
62523b2bf1
Binary file not shown.
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 24 KiB |
@ -226,7 +226,11 @@ export const WithLargeFont: Story = {
|
||||
decorators: [
|
||||
(Story) => {
|
||||
useEffect(() => {
|
||||
const originalFontSize = getComputedStyle(document.documentElement).fontSize;
|
||||
document.documentElement.style.setProperty("font-size", "36px");
|
||||
return () => {
|
||||
document.documentElement.style.setProperty("font-size", originalFontSize);
|
||||
};
|
||||
}, []);
|
||||
return <Story />;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user