diff --git a/apps/web/src/components/auth-container/index.jsx b/apps/web/src/components/auth-container/index.jsx index 45ae1086c..c38662a1a 100644 --- a/apps/web/src/components/auth-container/index.jsx +++ b/apps/web/src/components/auth-container/index.jsx @@ -208,18 +208,20 @@ function AuthContainer(props) { {version.status === "fulfilled" && version.value.instance !== "default" ? ( <> - Using{" "} - {version.value.instance + ` (v${version.value.version})`} + {strings.usingInstance( + version.value.instance, + version.value.version + )} ) : ( - <>Using official Notesnook instance. + <>{strings.usingOfficialInstance()} )} diff --git a/apps/web/src/components/dialog/index.tsx b/apps/web/src/components/dialog/index.tsx index a3c8f6c46..1c4a48fcd 100644 --- a/apps/web/src/components/dialog/index.tsx +++ b/apps/web/src/components/dialog/index.tsx @@ -137,7 +137,9 @@ function BaseDialog(props: React.PropsWithChildren) { sx={{ fontSize: "subheading", textAlign: props.textAlignment || "left", - color: "paragraph" + color: "paragraph", + overflowWrap: "anywhere", + wordSpacing: "wrap" }} > {props.title} @@ -148,7 +150,9 @@ function BaseDialog(props: React.PropsWithChildren) { variant="body" sx={{ textAlign: props.textAlignment || "left", - color: "var(--paragraph-secondary)" + color: "var(--paragraph-secondary)", + overflowWrap: "anywhere", + wordSpacing: "wrap" }} > {props.description} @@ -205,6 +209,12 @@ export function DialogButton(props: DialogButtonProps) { variant="dialog" disabled={props.disabled} onClick={props.disabled ? undefined : props.onClick} + sx={{ + maxWidth: "100%", + textOverflow: "ellipsis", + overflow: "hidden", + whiteSpace: "nowrap" + }} > {props.loading ? : props.text} diff --git a/apps/web/src/components/properties/index.tsx b/apps/web/src/components/properties/index.tsx index 3c17d929e..23ed47c04 100644 --- a/apps/web/src/components/properties/index.tsx +++ b/apps/web/src/components/properties/index.tsx @@ -189,16 +189,24 @@ function EditorProperties(props: EditorPropertiesProps) { sx={{ borderBottom: "1px solid var(--separator)", alignItems: "center", - justifyContent: "space-between" + justifyContent: "space-between", + gap: 1 }} > - + {item.label} {item.value(session.note[item.key])} diff --git a/apps/web/src/components/properties/toggle.tsx b/apps/web/src/components/properties/toggle.tsx index e16eb81ff..ee5179fa2 100644 --- a/apps/web/src/components/properties/toggle.tsx +++ b/apps/web/src/components/properties/toggle.tsx @@ -39,22 +39,36 @@ function Toggle(props: ToggleProps) { cursor: "pointer", alignItems: "center", justifyContent: "space-between", + gap: 1, "& label": { width: "auto", flexShrink: 0 } }} data-test-id={props.testId} onClick={() => onToggle(!isOn)} > - - {label} - + + {label} + + e.stopPropagation()} /> diff --git a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx b/apps/web/src/dialogs/settings/components/customize-toolbar.tsx index ebca58951..50b95face 100644 --- a/apps/web/src/dialogs/settings/components/customize-toolbar.tsx +++ b/apps/web/src/dialogs/settings/components/customize-toolbar.tsx @@ -119,7 +119,10 @@ export function CustomizeToolbar() {