diff --git a/assets/js/src/components/editor-tabs/editor-tabs.styles.tsx b/assets/js/src/components/editor-tabs/editor-tabs.styles.tsx index f688f47cf..8a68befca 100644 --- a/assets/js/src/components/editor-tabs/editor-tabs.styles.tsx +++ b/assets/js/src/components/editor-tabs/editor-tabs.styles.tsx @@ -10,6 +10,9 @@ export const useStyle = createStyles(({ token, css }) => { &.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn { color: ${token.colorPrimaryActive} } + &.ant-tabs-top >.ant-tabs-nav { + margin-bottom: 0; + } .ant-tabs-tab { &:first-of-type { diff --git a/assets/js/src/modules/asset/editor-tabs/index.tsx b/assets/js/src/modules/asset/editor-tabs/index.tsx index c59bcee57..300adab55 100755 --- a/assets/js/src/modules/asset/editor-tabs/index.tsx +++ b/assets/js/src/modules/asset/editor-tabs/index.tsx @@ -11,75 +11,76 @@ import { NotesAndEventsTab } from '@Pimcore/modules/asset/editor-tabs/tabs/conta import { WorkflowTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/workflow' import { TagsTab } from '@Pimcore/modules/asset/editor-tabs/tabs/container/tags' import { AssetEditorTabManager } from '@Pimcore/modules/editor-tab-manager/utils/asset-tab-manager' +import i18n from '@Pimcore/app/i18n' export const assetEditorTabManager = new AssetEditorTabManager() assetEditorTabManager.register({ key: 'view', - label: ('view'), + label: i18n.t('asset.asset-editor-tabs.view'), children: , icon: }) assetEditorTabManager.register({ key: 'edit', - label: ('edit'), + label: i18n.t('asset.asset-editor-tabs.edit'), children: , icon: }) assetEditorTabManager.register({ key: 'embedded-metadata', - label: ('embedded metadata'), + label: i18n.t('asset.asset-editor-tabs.embedded-metadata'), children: , icon: }) assetEditorTabManager.register({ key: 'custom-metadata', - label: ('custom metadata'), + label: i18n.t('asset.asset-editor-tabs.custom-metadata'), children: , icon: }) assetEditorTabManager.register({ key: 'versions', - label: ('versions'), + label: i18n.t('asset.asset-editor-tabs.versions'), children: , icon: }) assetEditorTabManager.register({ key: 'schedule', - label: ('schedule'), + label: i18n.t('asset.asset-editor-tabs.schedule'), children: , icon: }) assetEditorTabManager.register({ key: 'dependencies', - label: ('dependencies'), + label: i18n.t('asset.asset-editor-tabs.dependencies'), children: , icon: }) assetEditorTabManager.register({ - key: 'notes-and-events', - label: ('notes & events'), + key: 'notes-events', + label: i18n.t('asset.asset-editor-tabs.notes-events'), children: , icon: }) assetEditorTabManager.register({ key: 'tags', - label: ('tag'), + label: i18n.t('asset.asset-editor-tabs.tag'), children: , icon: }) assetEditorTabManager.register({ key: 'workflow', - label: ('workflow'), + label: i18n.t('asset.asset-editor-tabs.workflow'), children: , icon: })