From 484d1ea65e1cadcdec1d553b80aa54d059b886d8 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Dec 2023 16:21:59 +0100 Subject: [PATCH] standalone view: more padding --- node.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node.lua b/node.lua index c8ab215..29380ec 100644 --- a/node.lua +++ b/node.lua @@ -132,7 +132,7 @@ function node.render() local col2 = PADDING*2 + 15 + font_text:width("XXX min ago", time_size) local track_x = 0 - local track_y = NATIVE_HEIGHT + local track_y = NATIVE_HEIGHT - PADDING local space_used_for_tracks = 0 for idx = 1, #tracks do track = tracks[idx] @@ -182,7 +182,7 @@ function node.render() font_text, info_size, NATIVE_WIDTH - col2 - PADDING ) - if y + #title_lines * TALK_FONT_SIZE + 3 + #info_lines * info_size > NATIVE_HEIGHT - space_used_for_tracks*info_size then + if y + #title_lines * TALK_FONT_SIZE + 3 + #info_lines * info_size > NATIVE_HEIGHT - space_used_for_tracks*info_size - PADDING*2 then break end