`
margin: 0;
@@ -48,9 +58,9 @@ export function EditablePhone({ value, placeholder, changeHandler }: OwnProps) {
/>
}
nonEditModeContent={
-
+ <>
{isValidPhoneNumber(inputValue) ? (
- ) => {
event.stopPropagation();
@@ -58,11 +68,11 @@ export function EditablePhone({ value, placeholder, changeHandler }: OwnProps) {
>
{parsePhoneNumber(inputValue, 'FR')?.formatInternational() ||
inputValue}
-
+
) : (
- {inputValue}
+ {inputValue}
)}
-
+ >
}
/>
);
diff --git a/front/src/modules/ui/components/editable-cell/types/EditableText.tsx b/front/src/modules/ui/components/editable-cell/types/EditableText.tsx
index a287240fe..076a1eee8 100644
--- a/front/src/modules/ui/components/editable-cell/types/EditableText.tsx
+++ b/front/src/modules/ui/components/editable-cell/types/EditableText.tsx
@@ -24,6 +24,9 @@ const StyledInplaceInput = styled.input`
`;
const StyledNoEditText = styled.div`
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
width: 100%;
`;
diff --git a/front/src/modules/ui/components/links/RawLink.tsx b/front/src/modules/ui/components/links/RawLink.tsx
index 70266f024..d8b19f366 100644
--- a/front/src/modules/ui/components/links/RawLink.tsx
+++ b/front/src/modules/ui/components/links/RawLink.tsx
@@ -3,6 +3,7 @@ import { Link as ReactLink } from 'react-router-dom';
import styled from '@emotion/styled';
type OwnProps = {
+ className?: string;
href: string;
children?: React.ReactNode;
onClick?: (event: React.MouseEvent) => void;
@@ -17,9 +18,9 @@ const StyledClickable = styled.div`
}
`;
-export function RawLink({ href, children, onClick }: OwnProps) {
+export function RawLink({ className, href, children, onClick }: OwnProps) {
return (
-
+
{children}
diff --git a/front/src/modules/ui/layout/navbar/NavItem.tsx b/front/src/modules/ui/layout/navbar/NavItem.tsx
index 7df6dde21..565aa2e3a 100644
--- a/front/src/modules/ui/layout/navbar/NavItem.tsx
+++ b/front/src/modules/ui/layout/navbar/NavItem.tsx
@@ -70,9 +70,10 @@ const StyledSoonPill = styled.div`
align-items: center;
border-radius: 50px;
background-color: ${({ theme }) => theme.background.transparent.light};
- font-size: ${({ theme }) => theme.font.size.xs};
- padding: ${({ theme }) => theme.spacing(1)} ${({ theme }) => theme.spacing(2)}
- ${({ theme }) => theme.spacing(1)} ${({ theme }) => theme.spacing(2)};
+ font-size: ${({ theme }) => theme.font.size.xxs};
+ height: 16px;
+ padding-left: ${({ theme }) => theme.spacing(2)};
+ padding-right: ${({ theme }) => theme.spacing(2)};
margin-left: auto; // this aligns the pill to the right
`;
diff --git a/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx b/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
index f0b6e1ed2..b26d2d5bf 100644
--- a/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
+++ b/front/src/modules/ui/layout/navbar/NavWorkspaceButton.tsx
@@ -22,7 +22,6 @@ const StyledContainer = styled.div`
const LogoAndNameContainer = styled.div`
align-items: center;
- cursor: pointer;
display: flex;
`;
diff --git a/front/src/modules/ui/themes/font.ts b/front/src/modules/ui/themes/font.ts
index fbd9418a4..932b90484 100644
--- a/front/src/modules/ui/themes/font.ts
+++ b/front/src/modules/ui/themes/font.ts
@@ -2,6 +2,7 @@ import { grayScale } from './colors';
const common = {
size: {
+ xxs: '0.625rem',
xs: '0.85rem',
sm: '0.92rem',
md: '1rem',
diff --git a/front/src/modules/users/components/Avatar.tsx b/front/src/modules/users/components/Avatar.tsx
index f821382d3..aa125f557 100644
--- a/front/src/modules/users/components/Avatar.tsx
+++ b/front/src/modules/users/components/Avatar.tsx
@@ -22,6 +22,7 @@ export const StyledAvatar = styled.div>`
border-radius: ${(props) => (props.type === 'rounded' ? '50%' : '2px')};
color: ${({ theme }) => theme.font.color.primary};
display: flex;
+ flex-shrink: 0;
font-size: ${({ theme }) => theme.font.size.sm};
font-weight: ${({ theme }) => theme.font.weight.medium};