Skip to content

Commit

Permalink
fix: align language switcher
Browse files Browse the repository at this point in the history
  • Loading branch information
r41ph committed Dec 10, 2024
1 parent d19b21b commit 630d6b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion web-components/src/components/header/Header.styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const useHeaderStyles = makeStyles<StyleProps>()(
},
'& li.MuiMenuItem-root, li.MuiMenuItem-root > div': {
display: 'flex',
alignSelf: 'end',
alignSelf: 'center',
backgroundColor: 'inherit',
textDecoration: 'none',
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { useAuth } from 'lib/auth/auth';
import { getBalanceQuery } from 'lib/queries/react-query/cosmos/bank/getBalanceQuery/getBalanceQuery';

import { DRAFT_ID } from 'pages/Dashboard/MyProjects/MyProjects.constants';
import { useAuthData } from 'hooks/useAuthData';
import { useQueryIsIssuer } from 'hooks/useQueryIsIssuer';

import { useWallet } from '../../../lib/wallet/wallet';
Expand All @@ -24,7 +23,6 @@ const ListProject = () => {
const { _ } = useLingui();
const { wallet } = useWallet();
const { activeAccountId, activeAccount } = useAuth();
const { noAccountAndNoWallet } = useAuthData();
const navigate = useNavigate();
const isConnectingRef = useRef(false);

Expand All @@ -50,12 +48,10 @@ const ListProject = () => {
);

return (
<div>
<>
{!isLoadingIsIssuer && (
<Body
className={`text-[11px] sm:text-base font-bold bg-clip-text cursor-pointer ${
noAccountAndNoWallet ? 'pt-0' : 'pt-[5px]'
} pr-10 sm:pr-25 bg-[linear-gradient(202deg,#4FB573_14.67%,#B9E1C7_97.14%)] text-right`}
className="text-[11px] sm:text-base font-bold bg-clip-text cursor-pointer mb-3 pr-10 sm:pr-25 bg-[linear-gradient(202deg,#4FB573_14.67%,#B9E1C7_97.14%)] text-right"
sx={{
textFillColor: 'transparent',
}}
Expand All @@ -81,7 +77,7 @@ const ListProject = () => {
modalState={modalState}
redirectRoute="project-pages/draft/basic-info"
/>
</div>
</>
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ const RegistryLayoutHeader: React.FC = () => {
{clientConfig.listProject && <ListProject />}
<LanguageSwitcher
className={cn(
'mr-25 hidden lg:block',
'mr-25 mt-1 hidden lg:block',
isHome && 'text-sc-button-text-icon-light',
)}
/>
Expand Down

0 comments on commit 630d6b7

Please sign in to comment.