Fix maps title.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-06 21:18:25 -07:00
parent e34c1649f1
commit a1edb09e91
2 changed files with 4 additions and 2 deletions

View File

@ -352,6 +352,7 @@ export function buildZoomToolbarConfiguration(isMobile: boolean, designer: Desig
export function buildEditorAppBarConfiguration(
designer: Designer,
mapTitle: string,
onAction: (type: ToolbarActionType) => void,
save: () => void,
showOnlyCommonActions: boolean,
@ -373,14 +374,14 @@ export function buildEditorAppBarConfiguration(
},
{
render: () => (
<Tooltip title={designer.getMindmap().getDescription()}>
<Tooltip title={mapTitle}>
<Typography
className="truncated"
variant="body1"
component="div"
sx={{ marginX: '1.5rem' }}
>
{designer.getMindmap().getDescription()}
{mapTitle}
</Typography>
</Tooltip>
),

View File

@ -200,6 +200,7 @@ const Editor = ({
const locale = options.locale;
const msg = I18nMsg.loadLocaleData(locale);
const menubarConfiguration = configurationBuilder.buildEditorAppBarConfiguration(
options.mapTitle,
mindplotComponent?.getDesigner(),
onAction,
() => {