Web:Files:Components: fix external link padding for modal view

This commit is contained in:
Timofey Boyko 2022-04-19 12:45:40 +03:00
parent c557470c77
commit 624f79fb7a
3 changed files with 9 additions and 3 deletions

View File

@ -118,7 +118,7 @@ const ExternalLink = ({
];
return (
<StyledExternalLink isPersonal={isPersonal} style={style}>
<StyledExternalLink isPersonal={isPersonal} isOpen={isOpen} style={style}>
<div className="external-link__base-line">
<Text className="external-link__text" noSelect={true} truncate={true}>
{t("ExternalLink")}

View File

@ -111,7 +111,12 @@ const StyledBodyContent = styled.div`
const StyledExternalLink = styled.div`
width: 100%;
padding: ${(props) => (props.isPersonal ? "8px 4px" : "20px 16px")};
padding: ${(props) =>
props.isPersonal
? props.isOpen
? "8px 4px 4px"
: "8px 4px 20px"
: "20px 16px"};
border-bottom: ${(props) =>
props.isPersonal ? "none" : props.theme.filesPanels.sharing.borderBottom};
@ -339,7 +344,7 @@ StyledFooterContent.defaultProps = { theme: Base };
const StyledModalFooter = styled.div`
width: 100%;
padding: 12px 4px 4px;
padding: 16px 4px 4px;
box-sizing: border-box;

View File

@ -561,6 +561,7 @@ class SharingPanelComponent extends React.Component {
scale={true}
onClose={this.onClose}
width={"400px"}
modalBodyPadding="12px 0 0"
>
<ModalDialog.Header>
<Header