feat: update export dialog

This commit is contained in:
Arnošt Pleskot 2023-07-28 11:23:26 +02:00
parent bb985eba3a
commit dc4e000a58
No known key found for this signature in database
2 changed files with 11 additions and 11 deletions

View File

@ -58,12 +58,6 @@
flex-grow: 1;
}
&__filename {
& > input {
margin-top: 1rem;
}
}
&__canvas {
box-sizing: border-box;
width: 100%;
@ -115,6 +109,13 @@
align-content: flex-start;
}
&__filename {
& > input {
width: 100%;
box-sizing: border-box;
}
}
&__setting {
display: flex;
flex-direction: row;

View File

@ -128,13 +128,15 @@ const ImageExportModal = ({
<div className="ImageExportModal__preview__canvas" ref={previewRef}>
{renderError && <ErrorCanvasPreview />}
</div>
<div className="ImageExportModal__preview__filename">
</div>
<div className="ImageExportModal__settings">
<h3>{t("imageExportDialog.header")}</h3>
<div className="ImageExportModal__settings__filename">
{!nativeFileSystemSupported && (
<input
type="text"
className="TextInput"
value={projectName}
style={{ width: "30ch" }}
disabled={
typeof appProps.name !== "undefined" || appState.viewModeEnabled
}
@ -149,9 +151,6 @@ const ImageExportModal = ({
/>
)}
</div>
</div>
<div className="ImageExportModal__settings">
<h3>{t("imageExportDialog.header")}</h3>
{someElementIsSelected && (
<ExportSetting
label={t("imageExportDialog.label.onlySelected")}