mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:08:12 +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
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