feat: remove subphrase in edition section dialog (#33780)
This commit is contained in:
@@ -21,3 +21,7 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mx_CreateSectionDialog_edition > .mx_Dialog_header {
|
||||||
|
margin-bottom: var(--cpd-space-6x);
|
||||||
|
}
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
import React, { useState, type JSX } from "react";
|
import React, { useState, type JSX } from "react";
|
||||||
import { Flex } from "@element-hq/web-shared-components";
|
import { Flex } from "@element-hq/web-shared-components";
|
||||||
import { Form, Text } from "@vector-im/compound-web";
|
import { Form, Text } from "@vector-im/compound-web";
|
||||||
|
import classNames from "classnames";
|
||||||
|
|
||||||
import BaseDialog from "./BaseDialog";
|
import BaseDialog from "./BaseDialog";
|
||||||
import DialogButtons from "../elements/DialogButtons";
|
import DialogButtons from "../elements/DialogButtons";
|
||||||
@@ -37,15 +38,19 @@ export function CreateSectionDialog({ onFinished, sectionToEdit }: CreateSection
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<BaseDialog
|
<BaseDialog
|
||||||
className="mx_CreateSectionDialog"
|
className={classNames("mx_CreateSectionDialog", {
|
||||||
|
mx_CreateSectionDialog_edition: isEdition,
|
||||||
|
})}
|
||||||
onFinished={() => onFinished(false, value)}
|
onFinished={() => onFinished(false, value)}
|
||||||
title={isEdition ? _t("create_section_dialog|title_edition") : _t("create_section_dialog|title")}
|
title={isEdition ? _t("create_section_dialog|title_edition") : _t("create_section_dialog|title")}
|
||||||
hasCancel={true}
|
hasCancel={true}
|
||||||
>
|
>
|
||||||
<Flex gap="var(--cpd-space-6x)" direction="column" className="mx_CreateSectionDialog_content">
|
<Flex gap="var(--cpd-space-6x)" direction="column" className="mx_CreateSectionDialog_content">
|
||||||
<Text as="span" weight="medium">
|
{!isEdition && (
|
||||||
{_t("create_section_dialog|description")}
|
<Text as="span" weight="medium">
|
||||||
</Text>
|
{_t("create_section_dialog|description")}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
<Form.Root
|
<Form.Root
|
||||||
className="mx_CreateSectionDialog_form"
|
className="mx_CreateSectionDialog_form"
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user