diff --git a/i18n/en_US.yaml b/i18n/en_US.yaml index 37ed2be21..7b1d8b18b 100644 --- a/i18n/en_US.yaml +++ b/i18n/en_US.yaml @@ -1263,12 +1263,14 @@ ui: site_name: label: Site name msg: Site name cannot be empty. + msg_max_length: Site name must be at maximum 30 characters in length. site_url: label: Site URL text: The address of your site. msg: empty: Site URL cannot be empty. incorrect: Site URL incorrect format. + max_length: Site URL must be at maximum 512 characters in length. contact_email: label: Contact email text: Email address of key contact responsible for this site. @@ -1283,12 +1285,15 @@ ui: label: Name msg: Name cannot be empty. character: 'Must use the character set "a-z", "0-9", " - . _"' + msg_max_length: Name must be at maximum 30 characters in length. admin_password: label: Password text: >- You will need this password to log in. Please store it in a secure location. msg: Password cannot be empty. + msg_min_length: Password must be at least 8 characters in length. + msg_max_length: Password must be at maximum 32 characters in length. admin_email: label: Email text: You will need this email to log in. diff --git a/ui/src/components/BaseUserCard/index.tsx b/ui/src/components/BaseUserCard/index.tsx index 826f33195..12d9ed889 100644 --- a/ui/src/components/BaseUserCard/index.tsx +++ b/ui/src/components/BaseUserCard/index.tsx @@ -12,6 +12,7 @@ interface Props { avatarSearchStr?: string; className?: string; avatarClass?: string; + nameMaxWidth?: string; } const Index: FC = ({ @@ -22,11 +23,14 @@ const Index: FC = ({ className = 'small', avatarSearchStr = 's=48', showReputation = true, + nameMaxWidth = '300px', }) => { return (
{data?.status !== 'deleted' ? ( - + {showAvatar && ( = ({ alt={data?.display_name} /> )} - + {data?.display_name} @@ -51,9 +57,7 @@ const Index: FC = ({ alt={data?.display_name} /> )} - - {data?.display_name} - + {data?.display_name} )} diff --git a/ui/src/components/Editor/toolItem.tsx b/ui/src/components/Editor/toolItem.tsx index cba3a6229..2af406823 100644 --- a/ui/src/components/Editor/toolItem.tsx +++ b/ui/src/components/Editor/toolItem.tsx @@ -1,5 +1,5 @@ import { FC, useContext, useEffect } from 'react'; -import { Dropdown, OverlayTrigger, Tooltip, Button } from 'react-bootstrap'; +import { Dropdown, Button } from 'react-bootstrap'; import { EditorContext } from './EditorContext'; @@ -49,28 +49,27 @@ const ToolItem: FC = (props) => { }, []); const btnRender = () => ( - {tip}}> -