lsp-ui-doc works well most of the time, But some times it behaves weird. Here is an example:  The third line is not placed well, being truncated and goes into the left side. The bottom of the screen also shows the comments. I haven't figured out under which condition will lsp-ui-doc behaves like this.