Skip to content

Commit a244268

Browse files
committed
Update stylesheet & layout for datatables to enhance usability in non-iterm2 clients, improve spacing & color scheme, migrate to Selenized Dark
1 parent 5ebc12c commit a244268

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

reclaimed/ui/textual_app.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -501,24 +501,24 @@ def _update_table(self, table_id: str, items: List[FileInfo]) -> None:
501501
# Calculate how many items we can display based on available screen space
502502
# Get the current screen size
503503
screen_height = self.size.height if hasattr(self, 'size') else 24 # Default to 24 if size not available
504-
504+
505505
# Estimate space needed for other UI elements (headers, footers, etc.)
506506
# Header (1) + Title (1) + Status bar (1) + Section headers (2) + Footer (1) = ~6 lines
507507
other_ui_elements = 6
508-
508+
509509
# Each table gets roughly half of the remaining space
510510
available_height_per_table = max(5, (screen_height - other_ui_elements) // 2)
511-
511+
512512
# Determine max items to display - use the greater of:
513513
# 1. User-specified max (from options)
514514
# 2. Available height based on screen size
515515
max_items = available_height_per_table
516-
516+
517517
if table_id == "#files-table":
518518
user_max = getattr(self.options, 'user_max_files', self.options.max_files)
519519
else: # dirs-table
520520
user_max = getattr(self.options, 'user_max_dirs', self.options.max_dirs)
521-
521+
522522
# Use the larger of calculated max or user-specified max
523523
max_items = max(user_max, max_items)
524524

@@ -800,9 +800,9 @@ def run_textual_ui(
800800
# The UI will limit display based on screen size and user preferences
801801
scanner_max_files = 1000 # Collect up to 1000 files
802802
scanner_max_dirs = 1000 # Collect up to 1000 directories
803-
803+
804804
options = ScanOptions(max_files=scanner_max_files, max_dirs=scanner_max_dirs, skip_dirs=skip_dirs)
805-
805+
806806
# Store user preferences for UI display
807807
options.user_max_files = max_files
808808
options.user_max_dirs = max_dirs

0 commit comments

Comments
 (0)