Skip to content

Commit

Permalink
Add imprint/privacy settings menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
jonamil committed Jul 2, 2024
1 parent 0f85ac0 commit 86cc404
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/TheSettingsMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
:as="menuItem.heading ? 'div' : 'button'"
:disabled="menuItem.heading"
class="flex w-full items-center gap-0.5 pl-1 pr-8 text-left *:flex-none ui-active:bg-controls-color ui-disabled:pb-[0.0625rem] ui-disabled:font-medium ui-disabled:tracking-wide ui-disabled:text-secondary-color ui-disabled:[font-feature-settings:'smcp','c2sc'] dark:ui-active:bg-blank-color/75"
:class="[view.isTouchDevice ? 'h-9 ui-disabled:h-8' : 'h-8 ui-disabled:h-7']"
:class="[
view.isTouchDevice ? 'h-9 ui-disabled:h-8' : 'h-8 ui-disabled:h-7',
menuItem.faint ? 'text-indentation-color' : '',
]"
@click="menuItem.action"
>
<BaseIcon
Expand Down Expand Up @@ -57,6 +60,7 @@ const menuContents = ref<
items: {
text: string;
heading?: boolean;
faint?: boolean;
selected?: ComputedRef<boolean>;
action?: () => void;
}[];
Expand Down Expand Up @@ -115,6 +119,11 @@ const menuContents = ref<
text: 'About This Website',
action: () => {},
},
{
text: 'Imprint / Privacy',
faint: true,
action: () => {},
},
],
},
]);
Expand Down

1 comment on commit 86cc404

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for hackernews-dot-cool ready!

✅ Preview
https://hackernews-dot-cool-fh4t9odh3-jonamil-56ba8df7.vercel.app

Built with commit 86cc404.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.