fix: export file tree alignment and remove file count subtitle
- Move paddingLeft from inner label to outer grid div on directory rows so folders align with files and the search field - Remove "N files in rootPath" subtitle under Package files header Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
parent
e76fca138d
commit
173e7915a7
1 changed files with 3 additions and 4 deletions
|
|
@ -332,10 +332,12 @@ function ExportFileTree({
|
||||||
"group grid w-full grid-cols-[auto_minmax(0,1fr)_2.25rem] items-center gap-x-1 pr-3 text-left text-sm text-muted-foreground hover:bg-accent/30 hover:text-foreground",
|
"group grid w-full grid-cols-[auto_minmax(0,1fr)_2.25rem] items-center gap-x-1 pr-3 text-left text-sm text-muted-foreground hover:bg-accent/30 hover:text-foreground",
|
||||||
TREE_ROW_HEIGHT_CLASS,
|
TREE_ROW_HEIGHT_CLASS,
|
||||||
)}
|
)}
|
||||||
|
style={{
|
||||||
|
paddingInlineStart: `${TREE_BASE_INDENT + depth * TREE_STEP_INDENT - 8}px`,
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
className="flex items-center pl-2"
|
className="flex items-center pl-2"
|
||||||
style={{ paddingLeft: `${TREE_BASE_INDENT + depth * TREE_STEP_INDENT - 8}px` }}
|
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
|
|
@ -802,9 +804,6 @@ export function CompanyExport() {
|
||||||
<aside className="flex flex-col border-r border-border overflow-hidden">
|
<aside className="flex flex-col border-r border-border overflow-hidden">
|
||||||
<div className="border-b border-border px-4 py-3 shrink-0">
|
<div className="border-b border-border px-4 py-3 shrink-0">
|
||||||
<h2 className="text-base font-semibold">Package files</h2>
|
<h2 className="text-base font-semibold">Package files</h2>
|
||||||
<p className="text-xs text-muted-foreground">
|
|
||||||
{totalFiles} file{totalFiles === 1 ? "" : "s"} in {exportData.rootPath}
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="border-b border-border px-3 py-2 shrink-0">
|
<div className="border-b border-border px-3 py-2 shrink-0">
|
||||||
<div className="flex items-center gap-2 rounded-md border border-border px-2 py-1">
|
<div className="flex items-center gap-2 rounded-md border border-border px-2 py-1">
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue