Skip to content

Commit

Permalink
Fix sound listings to avoid overflowing the content pane horizontally
Browse files Browse the repository at this point in the history
  • Loading branch information
pushfoo committed Oct 16, 2024
1 parent a5d7bf7 commit b5e5421
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/create_resources_listing.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def skipped_file(file_path: Path):


MAX_COLS: dict[str, int] = defaultdict(lambda: 3)
MAX_COLS[":resources:sounds/"] = 2


@lru_cache(maxsize=None)
Expand Down Expand Up @@ -154,9 +155,10 @@ def process_resource_directory(out, dir: Path):
def process_resource_files(out, file_list: List[Path]):
cell_count = 0

prefix = create_resource_path(file_list[0].parent)
prefix = create_resource_path(file_list[0].parent, suffix="/")
COLUMNS = get_header_num_cols(prefix, len(file_list))

log.info(f"Processing {prefix=!r} with {COLUMNS=!r}")
for path in file_list:
resource_path = path.relative_to(ARCADE_ROOT).as_posix()
suffix = path.suffix
Expand Down

0 comments on commit b5e5421

Please sign in to comment.