mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 11:43:48 +01:00
Fix maps title.
This commit is contained in:
parent
e34c1649f1
commit
a1edb09e91
@ -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>
|
||||
),
|
||||
|
@ -200,6 +200,7 @@ const Editor = ({
|
||||
const locale = options.locale;
|
||||
const msg = I18nMsg.loadLocaleData(locale);
|
||||
const menubarConfiguration = configurationBuilder.buildEditorAppBarConfiguration(
|
||||
options.mapTitle,
|
||||
mindplotComponent?.getDesigner(),
|
||||
onAction,
|
||||
() => {
|
||||
|
Loading…
Reference in New Issue
Block a user