chore: spreadsheet layout improvement (#2677)
* style: spreadsheet column width fix * style: spreadsheet label column styling * chore: spreadsheet layout issue properties improvement * fix: build error
This commit is contained in:
parent
98974fdc50
commit
93d03f82b4
12 changed files with 77 additions and 23 deletions
|
|
@ -18,7 +18,7 @@ export const SpreadsheetAttachmentColumn: React.FC<Props> = (props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-center text-xs h-full w-full">
|
||||
<div className="flex items-center px-2.5 py-1 text-xs h-full w-full">
|
||||
{issue.attachment_count} {issue.attachment_count === 1 ? "attachment" : "attachments"}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ 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"
|
||||
className="flex items-center px-2.5 py-1 !h-full !w-full max-w-full"
|
||||
noBorder
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export const SpreadsheetLabelColumn: React.FC<Props> = (props) => {
|
|||
value={issue.labels}
|
||||
onChange={(data) => onChange({ labels: data })}
|
||||
className="h-full w-full"
|
||||
buttonClassName="!shadow-none !border-0 h-full w-full px-2.5 py-1 "
|
||||
buttonClassName="px-2.5 h-full"
|
||||
noLabelBorder
|
||||
hideDropdownArrow
|
||||
maxRender={1}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const SpreadsheetLinkColumn: React.FC<Props> = (props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-center text-xs h-full w-full">
|
||||
<div className="flex items-center px-2.5 py-1 text-xs h-full w-full">
|
||||
{issue.link_count} {issue.link_count === 1 ? "link" : "links"}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -24,8 +24,7 @@ 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"
|
||||
className="flex items-center px-2.5 py-1 !h-full !w-full max-w-full"
|
||||
noBorder
|
||||
disabled={disabled}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export const SpreadsheetSubIssueColumn: React.FC<Props> = (props) => {
|
|||
|
||||
return (
|
||||
<>
|
||||
<div className="flex items-center justify-center text-xs h-full w-full">
|
||||
<div className="flex items-center px-2.5 py-1 text-xs h-full w-full">
|
||||
{issue.sub_issues_count} {issue.sub_issues_count === 1 ? "sub-issue" : "sub-issues"}
|
||||
</div>
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export const SpreadsheetColumn: React.FC<Props> = (props) => {
|
|||
const propertyDetails = SPREADSHEET_PROPERTY_DETAILS[property];
|
||||
|
||||
return (
|
||||
<div className="relative flex flex-col h-max w-full bg-custom-background-100">
|
||||
<div className="relative flex flex-col h-max w-full max-w-max bg-custom-background-100">
|
||||
<div className="flex items-center min-w-[8rem] px-4 py-1 text-sm font-medium z-[1] h-11 w-full sticky top-0 bg-custom-background-90 border border-l-0 border-custom-border-100">
|
||||
<CustomMenu
|
||||
customButtonClassName="!w-full"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue