Skip to content

Commit

Permalink
fix(tests): on question bank creation, on a map question type, fix ma…
Browse files Browse the repository at this point in the history
…rker contextual menu when marker is on right margin of the photo.
  • Loading branch information
fermarinsanchez committed Jul 16, 2024
1 parent 038a457 commit c294f18
Showing 1 changed file with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ import {
Select,
Stack,
Title,
Text,
TextClamp,
} from '@bubbles-ui/components';
import { numberToEncodedLetter } from '@common';
import useTranslateLoader from '@multilanguage/useTranslateLoader';
import prefixPN from '@tests/helpers/prefixPN';
import { LeebraryImage } from '@leebrary/components';

const DROPDOWN_WIDTH = 90;

export const QuestionImageMarkersModalStyles = createStyles((theme, { isLight }) => ({
root: {},
title: {},
Expand Down Expand Up @@ -193,21 +193,14 @@ export function QuestionImageMarkersModal({ src = '', value = {}, onChange, onCl
top: marker.top,
left: marker.left,
}}
dropdownWidth={DROPDOWN_WIDTH}
items={[
{
children: (
<TextClamp lines={1} withTooltip>
<Text strong>{t('delete')}</Text>
</TextClamp>
),
children: t('delete'),
onClick: () => removeMarker(index),
},
{
children: (
<TextClamp lines={1} withTooltip>
<Text strong>{t('move')}</Text>
</TextClamp>
),
children: t('move'),
onClick: (e) => moveMarker(index, e),
},
]}
Expand Down

0 comments on commit c294f18

Please sign in to comment.