This commit is contained in:
Konstantin Pospelov 2026-03-27 05:39:11 +00:00 committed by GitHub
commit b3b6b90ba4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -202,8 +202,8 @@ static uint32_t render_status_block(struct render_context *ctx,
"%s", block->min_width_str);
block->min_width = w;
}
if (width < block->min_width) {
width = block->min_width;
if (width < block->min_width * output->scale) {
width = block->min_width * output->scale;
}
double block_width = width;
@ -368,8 +368,8 @@ static void predict_status_block_pos(cairo_t *cairo,
1, block->markup, "%s", block->min_width_str);
block->min_width = w;
}
if (width < block->min_width) {
width = block->min_width;
if (width < block->min_width * output->scale) {
width = block->min_width * output->scale;
}
uint32_t ideal_height = text_height + ws_vertical_padding * 2;