Merge pull request #129 from ONLYOFFICE/bugfix/plugins-double-separator
Client:Plugins: fix plugin double separator
This commit is contained in:
commit
e16609200b
@ -87,7 +87,12 @@ const SettingsPluginDialog = ({
|
||||
setSaveButtonProps={setSaveButtonProps}
|
||||
setModalRequestRunning={setModalRequestRunning}
|
||||
/>
|
||||
<Info t={t} plugin={plugin} withDelete={withDelete} />
|
||||
<Info
|
||||
t={t}
|
||||
plugin={plugin}
|
||||
withDelete={withDelete}
|
||||
withSeparator={!!customSettingsProps?.children}
|
||||
/>
|
||||
{withDelete && (
|
||||
<Button
|
||||
label={t("DeletePlugin")}
|
||||
|
@ -45,7 +45,7 @@ const StyledInfo = styled.div`
|
||||
gap: 8px 24px;
|
||||
`;
|
||||
|
||||
const Info = ({ t, plugin, withDelete }) => {
|
||||
const Info = ({ t, plugin, withDelete, withSeparator }) => {
|
||||
const locale = getCookie(LANGUAGE) || "en";
|
||||
const uploadDate = plugin.createOn && getCorrectDate(locale, plugin.createOn);
|
||||
|
||||
@ -56,7 +56,7 @@ const Info = ({ t, plugin, withDelete }) => {
|
||||
|
||||
return (
|
||||
<StyledContainer withDelete={withDelete}>
|
||||
<StyledSeparator />
|
||||
{withSeparator && <StyledSeparator />}
|
||||
<Text fontSize={"14px"} fontWeight={600} lineHeight={"16px"} noSelect>
|
||||
{t("Metadata")}
|
||||
</Text>
|
||||
|
Loading…
Reference in New Issue
Block a user