mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
SystemMonitor: Fix display of file system size column.
The Size column in the "File systems" tab of SystemMonitor had a rendering artifact where the bounding box outline would be drawn in the same location as the text. This makes the text look strange and hard to read. Pad the size with a signle space character on either side to give the text a gap on each side.
This commit is contained in:
parent
c0ee0bdc46
commit
edb66f214d
Notes:
sideshowbarker
2024-07-19 09:09:42 +09:00
Author: https://github.com/bgianfo
Commit: edb66f214d
Pull-request: https://github.com/SerenityOS/serenity/pull/1277
1 changed files with 5 additions and 1 deletions
|
@ -294,7 +294,11 @@ RefPtr<GUI::Widget> build_file_systems_tab()
|
|||
df_fields.empend(
|
||||
"Size", Gfx::TextAlignment::CenterRight,
|
||||
[](const JsonObject& object) {
|
||||
return human_readable_size(object.get("total_block_count").to_u32() * object.get("block_size").to_u32());
|
||||
StringBuilder size_builder;
|
||||
size_builder.append(" ");
|
||||
size_builder.append(human_readable_size(object.get("total_block_count").to_u32() * object.get("block_size").to_u32()));
|
||||
size_builder.append(" ");
|
||||
return size_builder.to_string();
|
||||
},
|
||||
[](const JsonObject& object) {
|
||||
return object.get("total_block_count").to_u32() * object.get("block_size").to_u32();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue