fix: spreadsheet view properties fix (#2599)
This commit is contained in:
parent
f6b95b8d31
commit
4512651f8b
14 changed files with 50 additions and 19 deletions
|
|
@ -26,7 +26,9 @@ export const SpreadsheetAssigneeColumn: React.FC<Props> = ({ issue, members, onC
|
|||
projectId={issue.project_detail.id ?? null}
|
||||
value={issue.assignees}
|
||||
onChange={(data) => onChange({ assignees: data })}
|
||||
buttonClassName="!p-0 !rounded-none !border-0"
|
||||
className="h-full w-full"
|
||||
buttonClassName="!shadow-none !border-0 h-full w-full px-2.5 py-1 "
|
||||
noLabelBorder
|
||||
hideDropdownArrow
|
||||
disabled={disabled}
|
||||
multiple
|
||||
|
|
|
|||
|
|
@ -19,7 +19,9 @@ export const SpreadsheetCreatedOnColumn: React.FC<Props> = ({ issue, expandedIss
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="text-xs">{renderLongDetailDateFormat(issue.created_at)}</div>
|
||||
<div className="flex items-center justify-center text-xs h-full w-full">
|
||||
{renderLongDetailDateFormat(issue.created_at)}
|
||||
</div>
|
||||
|
||||
{isExpanded &&
|
||||
!isLoading &&
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ export const SpreadsheetDueDateColumn: React.FC<Props> = ({ issue, onChange, exp
|
|||
<ViewDueDateSelect
|
||||
issue={issue}
|
||||
onChange={(val) => onChange({ target_date: val })}
|
||||
className="!h-full !w-full max-w-full px-2.5 py-1 flex items-center"
|
||||
buttonClassName="!h-full !w-full !shadow-none px-2.5"
|
||||
noBorder
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -25,6 +25,8 @@ export const SpreadsheetEstimateColumn: React.FC<Props> = (props) => {
|
|||
projectId={issue.project_detail.id ?? null}
|
||||
value={issue.estimate_point}
|
||||
onChange={(data) => onChange({ estimate_point: data })}
|
||||
className="h-full w-full"
|
||||
buttonClassName="h-full w-full px-2.5 py-1 !shadow-none !border-0"
|
||||
hideDropdownArrow
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -28,8 +28,9 @@ export const SpreadsheetLabelColumn: React.FC<Props> = (props) => {
|
|||
projectId={issue.project_detail.id ?? null}
|
||||
value={issue.labels}
|
||||
onChange={(data) => onChange({ labels: data })}
|
||||
className="h-full"
|
||||
buttonClassName="!border-0 !h-full !w-full !rounded-none"
|
||||
className="h-full w-full"
|
||||
buttonClassName="!shadow-none !border-0 h-full w-full px-2.5 py-1 "
|
||||
noLabelBorder
|
||||
hideDropdownArrow
|
||||
maxRender={1}
|
||||
disabled={disabled}
|
||||
|
|
|
|||
|
|
@ -24,8 +24,8 @@ export const SpreadsheetPriorityColumn: React.FC<Props> = ({ issue, onChange, ex
|
|||
<PrioritySelect
|
||||
value={issue.priority}
|
||||
onChange={(data) => onChange({ priority: data })}
|
||||
className="h-full"
|
||||
buttonClassName="!border-0 !h-full !w-full !rounded-none px-4"
|
||||
className="h-full w-full"
|
||||
buttonClassName="!shadow-none !border-0 h-full w-full px-2.5 py-1 "
|
||||
showTitle
|
||||
highlightUrgentPriority={false}
|
||||
hideDropdownArrow
|
||||
|
|
|
|||
|
|
@ -24,6 +24,8 @@ export const SpreadsheetStartDateColumn: React.FC<Props> = ({ issue, onChange, e
|
|||
<ViewStartDateSelect
|
||||
issue={issue}
|
||||
onChange={(val) => onChange({ start_date: val })}
|
||||
className="!h-full !w-full max-w-full px-2.5 py-1 flex items-center"
|
||||
buttonClassName="!h-full !w-full !shadow-none px-2.5"
|
||||
noBorder
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ export const SpreadsheetStateColumn: React.FC<Props> = (props) => {
|
|||
projectId={issue.project_detail.id ?? null}
|
||||
value={issue.state_detail}
|
||||
onChange={(data) => onChange({ state: data.id, state_detail: data })}
|
||||
buttonClassName="!shadow-none !border-0"
|
||||
className="h-full w-full"
|
||||
buttonClassName="!shadow-none !border-0 h-full w-full"
|
||||
hideDropdownArrow
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -21,7 +21,9 @@ export const SpreadsheetUpdatedOnColumn: React.FC<Props> = (props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="text-xs">{renderLongDetailDateFormat(issue.updated_at)}</div>
|
||||
<div className="flex items-center justify-center text-xs h-full w-full">
|
||||
{renderLongDetailDateFormat(issue.updated_at)}
|
||||
</div>
|
||||
|
||||
{isExpanded &&
|
||||
!isLoading &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue