Compare commits
No commits in common. "e7fe26f2da73cc508a8cfa60c5ad16e3d1d10cfb" and "97d5bfcee7147654246246d15bc06f919367ba68" have entirely different histories.
e7fe26f2da
...
97d5bfcee7
@ -100,7 +100,6 @@ const TemplateEditor = ({
|
|||||||
)}
|
)}
|
||||||
<Button
|
<Button
|
||||||
icon={<InfoCircleIcon />}
|
icon={<InfoCircleIcon />}
|
||||||
disabled={objectData?.global}
|
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setTestObjectOpen(true)
|
setTestObjectOpen(true)
|
||||||
}}
|
}}
|
||||||
@ -108,24 +107,15 @@ const TemplateEditor = ({
|
|||||||
<Button
|
<Button
|
||||||
icon={<PlusIcon />}
|
icon={<PlusIcon />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPreviewScale((prev) => prev + 0.05)
|
setPreviewScale((prev) => prev + 0.1)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Button
|
||||||
icon={<MinusIcon />}
|
icon={<MinusIcon />}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setPreviewScale((prev) => prev - 0.05)
|
setPreviewScale((prev) => prev - 0.1)
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<Button
|
|
||||||
readOnly={true}
|
|
||||||
style={{ width: '65px' }}
|
|
||||||
onClick={() => {
|
|
||||||
setPreviewScale(1)
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{previewScale.toFixed(2)}x
|
|
||||||
</Button>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
|
|
||||||
<iframe
|
<iframe
|
||||||
@ -188,7 +178,6 @@ const TemplateEditor = ({
|
|||||||
<Modal
|
<Modal
|
||||||
open={testObjectOpen}
|
open={testObjectOpen}
|
||||||
closeIcon={null}
|
closeIcon={null}
|
||||||
width={800}
|
|
||||||
footer={
|
footer={
|
||||||
<Button
|
<Button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
@ -198,12 +187,6 @@ const TemplateEditor = ({
|
|||||||
Close
|
Close
|
||||||
</Button>
|
</Button>
|
||||||
}
|
}
|
||||||
>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
maxHeight: 'calc(var(--unit-100vh) - 280px)',
|
|
||||||
overflowY: 'scroll'
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
<ObjectProperty
|
<ObjectProperty
|
||||||
type={'codeBlock'}
|
type={'codeBlock'}
|
||||||
@ -212,7 +195,6 @@ const TemplateEditor = ({
|
|||||||
objectData={objectData}
|
objectData={objectData}
|
||||||
isEditing={true}
|
isEditing={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
|
||||||
</Modal>
|
</Modal>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|||||||
@ -101,7 +101,7 @@ export const DocumentTemplate = {
|
|||||||
{
|
{
|
||||||
name: 'objectType',
|
name: 'objectType',
|
||||||
label: 'Object Type',
|
label: 'Object Type',
|
||||||
required: true,
|
required: false,
|
||||||
type: 'objectType',
|
type: 'objectType',
|
||||||
empty: (documentTemplate) => {
|
empty: (documentTemplate) => {
|
||||||
return documentTemplate.global
|
return documentTemplate.global
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user