* fix: Fix popup's width when viewport changes. * refactor: Refactor renderPopup to a React Component