-
Notifications
You must be signed in to change notification settings - Fork 89
Open
Description
The /files SelectList uses the description field for git status ([M], [??]), which causes the component to reserve space and aggressively truncate the label (file path) from the right:
scripts/visualize_support_r3_m [??]
→ src/gcode_generator/support/co [M]
scripts/visualize_r3_toy_modes [??]
src/gcode_generator/support/gc [M]
Fix: Append the status to the label instead of using description, so SelectList treats it as a single string and gives maximum width to the path:
const items: SelectItem[] = files.map((file) => {
const directoryLabel = file.isDirectory ? " [directory]" : "";
- return {
- value: file.canonicalPath,
- label: `${file.displayPath}${directoryLabel}`,
- description: file.status ? `[${file.status}]` : undefined,
- };
+ const statusSuffix = file.status ? ` [${file.status}]` : "";
+ return {
+ value: file.canonicalPath,
+ label: `${file.displayPath}${directoryLabel}${statusSuffix}`,
+ };
});Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels