Fix project page menu opening off-screen with right sidebar (#1565)

This commit is contained in:
Prospector
2024-01-11 16:11:39 -08:00
committed by GitHub
parent 9add661a5b
commit f534e4ee37

View File

@@ -330,7 +330,7 @@
}, },
{ id: 'copy-id', action: () => copyId() }, { id: 'copy-id', action: () => copyId() },
]" ]"
direction="right" :direction="cosmetics.projectLayout ? 'left' : 'right'"
> >
<MoreHorizontalIcon /> <MoreHorizontalIcon />
<template #report> <ReportIcon /> Report</template> <template #report> <ReportIcon /> Report</template>
@@ -338,15 +338,14 @@
</OverflowMenu> </OverflowMenu>
</template> </template>
<template v-else> <template v-else>
<nuxt-link class="iconified-button" to="/auth/sign-in">
<ReportIcon aria-hidden="true" />
Report
</nuxt-link>
<nuxt-link class="iconified-button" to="/auth/sign-in"> <nuxt-link class="iconified-button" to="/auth/sign-in">
<HeartIcon aria-hidden="true" /> <HeartIcon aria-hidden="true" />
Follow Follow
</nuxt-link> </nuxt-link>
<nuxt-link class="iconified-button" to="/auth/sign-in">
<BookmarkIcon aria-hidden="true" />
Save
</nuxt-link>
<OverflowMenu <OverflowMenu
class="btn icon-only" class="btn icon-only"
:options="[ :options="[
@@ -358,7 +357,7 @@
}, },
{ id: 'copy-id', action: () => copyId() }, { id: 'copy-id', action: () => copyId() },
]" ]"
direction="right" :direction="cosmetics.projectLayout ? 'left' : 'right'"
> >
<MoreHorizontalIcon /> <MoreHorizontalIcon />
<template #report> <ReportIcon /> Report</template> <template #report> <ReportIcon /> Report</template>