Web: Profile: fixed styles

This commit is contained in:
Nikita Gopienko 2024-02-26 15:56:19 +03:00
parent 8b364b041b
commit adddf6652e
4 changed files with 26 additions and 10 deletions

View File

@ -107,7 +107,15 @@ export const StyledInfo = styled.div`
.language-combo-box .combo-button {
padding-inline-end: 0px;
padding-left: 0px;
${(props) =>
props.theme.interfaceDirection === "rtl"
? css`
padding-right: 0px;
`
: css`
padding-left: 0px;
`}
}
@media ${tablet} {

View File

@ -17,10 +17,10 @@ export const StyledHeader = styled.div`
${(props) =>
props.theme.interfaceDirection === "rtl"
? css`
margin-right: 16px;
margin-right: 17px;
`
: css`
margin-left: 16px;
margin-left: 17px;
`}
@media ${tablet} {
flex-direction: row-reverse;
@ -68,17 +68,23 @@ export const StyledHeader = styled.div`
margin-left: -16px;
margin-right: -16px;
}
padding-top: 1px;
width: 17px;
min-width: 17px;
}
.header-headline {
white-space: nowrap;
line-height: 25px;
${(props) =>
props.theme.interfaceDirection === "rtl"
? css`
margin-right: 16px;
margin-right: 17px;
`
: css`
margin-left: 16px;
margin-left: 17px;
`}
}
`;

View File

@ -140,10 +140,12 @@ const Header = (props) => {
className="arrow-button"
/>
<Headline className="header-headline" type="content">
{t("Profile:MyProfile")}
{profile?.isLDAP && ` (${t("PeopleTranslations:LDAPLbl")})`}
</Headline>
<div>
<Headline className="header-headline" type="content">
{t("Profile:MyProfile")}
{profile?.isLDAP && ` (${t("PeopleTranslations:LDAPLbl")})`}
</Headline>
</div>
<div className="action-button">
{((isAdmin && !profile?.isOwner) || isMe) && (
<ContextMenuButton

View File

@ -166,5 +166,5 @@ export default inject(
setIsLoading,
getTfaType,
};
}
},
)(observer(withTranslation(["Profile", "Common"])(withCultureNames(Profile))));