diff options
author | Thanos Apollo <[email protected]> | 2024-07-08 09:04:45 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2024-07-08 09:04:45 +0300 |
commit | 5c0a3efd2fb5cc25a6a90741ad198e31fdb15640 (patch) | |
tree | 6ccad139de4d7eca2159cceb248f114d644922b1 | |
parent | 812f9db3be120ec9d70187f4c7c24a5a62e19b35 (diff) |
yeetube-tabulated-list: Put thumbnail in the first column
-rw-r--r-- | yeetube.el | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -680,27 +680,27 @@ FIELDS-FACE-PAIRS is a list of fields and faces." (let ((thumbnail-width (or thumbnail-width (/ (window-width) 10))) (title-width (or title-width (/ (window-width) 3))) (channel-width (or channel-width (/ (window-width) 8))) - (views-width (or views-width (/ (window-width) 8))) - (duration-width (or duration-width (/ (window-width) 8))) + (views-width (or views-width (/ (window-width) 10))) + (duration-width (or duration-width (/ (window-width) 10))) (date-width (or date-width (/ (window-width) 8)))) (setf tabulated-list-format - `[("Title" ,title-width t) + `[("Thumbnail" ,thumbnail-width nil) + ("Title" ,title-width t) ("Views" ,views-width yeetube--sort-views) ("Duration" ,duration-width yeetube--sort-duration) ("Date" ,date-width yeetube--sort-date) - ("Channel" ,channel-width t) - ("Thumbnail" ,thumbnail-width nil)] + ("Channel" ,channel-width t)] tabulated-list-entries (cl-map 'list (lambda (content) (list content (yeetube-propertize-vector content - :title 'yeetube-face-title + :image nil + :title 'yeetube-face-title :view-count 'yeetube-face-view-count :duration 'yeetube-face-duration :date 'yeetube-face-date - :channel 'yeetube-face-channel - :image nil))) + :channel 'yeetube-face-channel))) yeetube-content) tabulated-list-sort-key (cons yeetube-default-sort-column yeetube-default-sort-ascending)) |