aboutsummaryrefslogtreecommitdiffstats
path: root/apps/web/lib/userLocalSettings/bookmarksLayout.tsx
diff options
context:
space:
mode:
authorxuatz <xzlow10@gmail.com>2025-11-03 04:32:18 +0900
committerGitHub <noreply@github.com>2025-11-02 19:32:18 +0000
commit33f407797213c56dd2f13e98228a5305efdf90fd (patch)
tree149f477c1ab61b46bb0d9cc49c656a03b1c56f64 /apps/web/lib/userLocalSettings/bookmarksLayout.tsx
parentb63a49fc3980296c6a6ea6ac0624142e8af94d52 (diff)
downloadkarakeep-33f407797213c56dd2f13e98228a5305efdf90fd.tar.zst
feat: display notes on bookmark card (#2083)
* feat: display notes on bookmark card * apply styling * include mobile impl * apply pr comments * add display options menu into PR * put it under app setting * cleanup * address pr comments * change the default for show notes to false * make the in-card note font lighter --------- Co-authored-by: Mohamed Bassem <me@mbassem.com>
Diffstat (limited to 'apps/web/lib/userLocalSettings/bookmarksLayout.tsx')
-rw-r--r--apps/web/lib/userLocalSettings/bookmarksLayout.tsx8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/web/lib/userLocalSettings/bookmarksLayout.tsx b/apps/web/lib/userLocalSettings/bookmarksLayout.tsx
index 346c85e0..504d8d8c 100644
--- a/apps/web/lib/userLocalSettings/bookmarksLayout.tsx
+++ b/apps/web/lib/userLocalSettings/bookmarksLayout.tsx
@@ -14,12 +14,20 @@ export const UserLocalSettingsCtx = createContext<
bookmarkGridLayout: defaultLayout,
lang: fallbackLng,
gridColumns: 3,
+ showNotes: false,
});
function useUserLocalSettings() {
return useContext(UserLocalSettingsCtx);
}
+export function useBookmarkDisplaySettings() {
+ const settings = useUserLocalSettings();
+ return {
+ showNotes: settings.showNotes,
+ };
+}
+
export function useBookmarkLayout() {
const settings = useUserLocalSettings();
return settings.bookmarkGridLayout;