diff --git a/popup/App.tsx b/popup/App.tsx index 0831ac8..70b530a 100644 --- a/popup/App.tsx +++ b/popup/App.tsx @@ -53,6 +53,7 @@ import { getClipboardSnapshot, watchClipboardSnapshot } from "~storage/clipboard import { getEntryIdToTags, watchEntryIdToTags } from "~storage/entryIdToTags"; import { getFavoriteEntryIds, watchFavoriteEntryIds } from "~storage/favoriteEntryIds"; import { getSettings, watchSettings } from "~storage/settings"; +import { PopupSizeMap, type PopupSizeDimensions } from "~types/popupWindowSize"; import { Tab } from "~types/tab"; import { getEntries, watchEntries } from "~utils/storage"; import { defaultBorderColor, lightOrDark } from "~utils/sx"; @@ -102,6 +103,8 @@ export const App = () => { const [settings, setSettings] = useAtom(settingsAtom); const setEntryIdToTags = useSetAtom(entryIdToTagsAtom); const [changelogViewedAt, setChangelogViewedAt] = useAtom(changelogViewedAtAtom); + const windowSize: PopupSizeDimensions = PopupSizeMap[settings.popupWindowSize]; + useEffect(() => { (async () => setEntries(await getEntries()))(); watchEntries((entries) => { @@ -152,7 +155,12 @@ export const App = () => { } return ( - + diff --git a/popup/components/modals/SettingsModalContent.tsx b/popup/components/modals/SettingsModalContent.tsx index bfa7053..400a9ab 100644 --- a/popup/components/modals/SettingsModalContent.tsx +++ b/popup/components/modals/SettingsModalContent.tsx @@ -38,6 +38,7 @@ import { z } from "zod"; import { settingsAtom } from "~popup/states/atoms"; import { setSettings } from "~storage/settings"; +import { PopupSize } from "~types/popupWindowSize"; import { Tab } from "~types/tab"; import { removeActionBadgeText, setActionBadgeText } from "~utils/actionBadge"; import { getClipboardHistoryIOExport, importFile } from "~utils/importExport"; @@ -165,6 +166,27 @@ export const SettingsModalContent = () => { /> ({ borderColor: defaultBorderColor(theme) })} /> + + + Window Size + Select the size of the extension's window. + +