add border around task form elements (#1492)
This commit is contained in:
committed by
GitHub
parent
b818f32b1e
commit
07e1b34a21
@@ -390,12 +390,12 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
<Dialog
|
<Dialog
|
||||||
open={modal.visible}
|
open={modal.visible}
|
||||||
onOpenChange={handleDialogClose}
|
onOpenChange={handleDialogClose}
|
||||||
className="w-full max-w-[min(90vw,40rem)] max-h-[min(95vh,50rem)] flex flex-col overflow-hidden p-0"
|
className="w-full max-w-[min(90vw,40rem)] max-h-[min(95vh,50rem)] flex flex-col overflow-hidden"
|
||||||
uncloseable={showDiscardWarning}
|
uncloseable={showDiscardWarning}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
{...getRootProps()}
|
{...getRootProps()}
|
||||||
className="h-full flex flex-col gap-0 px-4 pb-4 relative min-h-0"
|
className="h-full flex flex-col gap-4 p-4 relative min-h-0"
|
||||||
>
|
>
|
||||||
<input {...getInputProps()} />
|
<input {...getInputProps()} />
|
||||||
{/* Drag overlay */}
|
{/* Drag overlay */}
|
||||||
@@ -411,7 +411,7 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Title */}
|
{/* Title */}
|
||||||
<div className="flex-none pr-8 pt-3">
|
<div className="flex-none px-4 py-2 border border-1 border-border">
|
||||||
<form.Field name="title">
|
<form.Field name="title">
|
||||||
{(field) => (
|
{(field) => (
|
||||||
<Input
|
<Input
|
||||||
@@ -419,7 +419,7 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
value={field.state.value}
|
value={field.state.value}
|
||||||
onChange={(e) => field.handleChange(e.target.value)}
|
onChange={(e) => field.handleChange(e.target.value)}
|
||||||
placeholder={t('taskFormDialog.titlePlaceholder')}
|
placeholder={t('taskFormDialog.titlePlaceholder')}
|
||||||
className="text-lg font-semibold border-none shadow-none px-0 placeholder:text-muted-foreground/60 focus-visible:ring-0"
|
className="text-lg font-semibold placeholder:text-muted-foreground/60 border-none p-0"
|
||||||
disabled={isSubmitting}
|
disabled={isSubmitting}
|
||||||
autoFocus
|
autoFocus
|
||||||
/>
|
/>
|
||||||
@@ -427,9 +427,8 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
</form.Field>
|
</form.Field>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="flex-1 min-h-0 overflow-y-auto overscroll-contain space-y-1 pb-3">
|
<div className="flex-1 p-4 min-h-0 overflow-y-auto overscroll-contain space-y-1 border border-1 border-border">
|
||||||
{/* Description */}
|
{/* Description */}
|
||||||
<div>
|
|
||||||
<form.Field name="description">
|
<form.Field name="description">
|
||||||
{(field) => (
|
{(field) => (
|
||||||
<WYSIWYGEditor
|
<WYSIWYGEditor
|
||||||
@@ -447,8 +446,6 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</form.Field>
|
</form.Field>
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Edit mode status */}
|
{/* Edit mode status */}
|
||||||
{editMode && (
|
{editMode && (
|
||||||
<form.Field name="status">
|
<form.Field name="status">
|
||||||
@@ -541,7 +538,7 @@ const TaskFormDialogImpl = NiceModal.create<TaskFormDialogProps>((props) => {
|
|||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Actions */}
|
{/* Actions */}
|
||||||
<div className="border-t pt-3 flex items-center justify-between gap-3">
|
<div className="flex items-center justify-between gap-3">
|
||||||
{/* Attach Image*/}
|
{/* Attach Image*/}
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
@@ -419,7 +419,7 @@
|
|||||||
"taskFormDialog": {
|
"taskFormDialog": {
|
||||||
"createTitle": "Create New Task",
|
"createTitle": "Create New Task",
|
||||||
"editTitle": "Edit Task",
|
"editTitle": "Edit Task",
|
||||||
"titlePlaceholder": "Task title",
|
"titlePlaceholder": "Task title...",
|
||||||
"descriptionPlaceholder": "Add more details (optional). Type @ to search files.",
|
"descriptionPlaceholder": "Add more details (optional). Type @ to search files.",
|
||||||
"statusLabel": "Status",
|
"statusLabel": "Status",
|
||||||
"statusOptions": {
|
"statusOptions": {
|
||||||
|
|||||||
@@ -404,7 +404,7 @@
|
|||||||
.diff-tailwindcss-wrapper tr,
|
.diff-tailwindcss-wrapper tr,
|
||||||
.diff-tailwindcss-wrapper td {
|
.diff-tailwindcss-wrapper td {
|
||||||
border-color: transparent;
|
border-color: transparent;
|
||||||
border-width: 0px;
|
/* border-width: 0px; */
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -455,7 +455,7 @@
|
|||||||
color: inherit;
|
color: inherit;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
border-width: 0px;
|
/* border-width: 0px; */
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: none;
|
background-image: none;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user