Skip to content

Commit

Permalink
fixed the focussiong of top action buttons on the details page
Browse files Browse the repository at this point in the history
  • Loading branch information
CommanderStorm committed Jan 7, 2024
1 parent 8ac92f6 commit 535af57
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion webclient/src/components/DetailsFeedbackButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const { t } = useI18n({ useScope: "local" });
<template>
<button
type="button"
class="btn btn-action btn-link btn-sm"
class="focusable rounded-sm"
:title="t('feedback')"
data-cy="open-feedback-details"
@click="global.openFeedback('entry', `[${route.params.id}]: `)"
Expand Down
4 changes: 3 additions & 1 deletion webclient/src/components/ShareButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ const shareOptions = computed<UseShareOptions>(() => ({
</script>

<template>
<a type="button" :title="t('external_link')" @click="modalOpen = true"><ShareIcon class="h-4 w-4" /></a>
<button type="button" :title="t('external_link')" class="focusable rounded-sm" @click="modalOpen = true">
<ShareIcon class="h-4 w-4" />
</button>
<Modal v-model="modalOpen" :title="t('share')">
<div class="flex flex-col gap-5">
<div class="flex flex-col gap-2">
Expand Down
14 changes: 9 additions & 5 deletions webclient/src/pages/view/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,15 @@ onMounted(() => {
<div class="flex grow place-items-center justify-between">
<span class="text-neutral-400">{{ state.data?.type_common_name }}</span>
<div class="flex flex-row place-items-center gap-3">
<template v-if="state.data?.props?.calendar_url">
<a :href="state.data.props.calendar_url" target="_blank" :title="t('header.calendar')">
<CalendarDaysIcon class="mt-0.5 h-4 w-4" />
</a>
</template>
<a
v-if="state.data?.props?.calendar_url"
:href="state.data.props.calendar_url"
target="_blank"
class="focusable rounded-sm"
:title="t('header.calendar')"
>
<CalendarDaysIcon class="mt-0.5 h-4 w-4" />
</a>
<ShareButton :coords="state.data.coords" :name="state.data.name" />
<DetailsFeedbackButton ref="feedbackButton" />
<!-- <button class="btn btn-link btn-action btn-sm"
Expand Down

0 comments on commit 535af57

Please sign in to comment.