ui: Update doc comments (#22802)

This PR updates some doc comments in the `ui` crate:

- End doc comments with punctuation
- Place doc comments above attributes

Release Notes:

- N/A
d67f2d3eabMarshall Bowers committed on 1/7/2025, 11:16:36 PM· committed by GitHubparenteae88a5
1 file changedLine totals unavailable