Hover preview wrong size

When the Logseq window is not maximized, the page preview shown on hover is still at the default size, so the text extends past the window edge and cannot be seen. The preview window size should change so the preview never extends past the window edge.