# inspector_ui: Split out size from bounds string \(\#39703\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d6b1801fb3c2649cc8c4e7f79a4e3b709db79355)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d6b1801fb3c2649cc8c4e7f79a4e3b709db79355

Requested commit: d6b1801fb3c2649cc8c4e7f79a4e3b709db79355

Commit: d6b1801fb3c2649cc8c4e7f79a4e3b709db79355

Tree: c5858bca30c6965218fa71e60348d8de5a64d882

Author: Bartosz Kaszubowski

Committer: GitHub

## Message

```
inspector_ui: Split out size from bounds string (#39703)

# How

Tweak the way in which inspected element bounds and size are printed to
improved readability of GPUI Inspector data.

> [!note]
> It looks like the only place in the workspace where bounds are used
within formatted print is GPUI Inspector panel, but I decided to do not
alter [GPUI `geometry.rs` default
format](https://github.com/zed-industries/zed/blob/a7e7f460205bc6eaa397f20c1bcf8c4105d93403/crates/gpui/src/geometry.rs#L1579-L1587),
since adding multiline output and additional labels in there does not
feel like the beast approach, but maybe I'm wrong?

Release Notes:

- N/A

# Preview

<img width="1168" height="224" alt="Screenshot 2025-10-07 at 20 08 35"
src="https://github.com/user-attachments/assets/97753fc1-68d7-4cf8-ad92-afe85319f3d8"
/>

<img width="1168" height="228" alt="Screenshot 2025-10-07 at 20 09 24"
src="https://github.com/user-attachments/assets/beed2a92-0817-4ed2-bb62-4d7b931e8709"
/>
```

## Parents

- [7c55f7181d3c518cea5a296353bff5d864f72fa6](https://git.cafe/gitcafe/zed/commit/7c55f7181d3c518cea5a296353bff5d864f72fa6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d6b1801fb3c2649cc8c4e7f79a4e3b709db79355?format=markdown)
