# chat panel: Fix tooltips not working for links \(\#9691\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ce57db497ef773a54a1a6061ff9dae00befdefa8

Requested commit: ce57db497ef773a54a1a6061ff9dae00befdefa8

Commit: ce57db497ef773a54a1a6061ff9dae00befdefa8

Tree: c77f94c0e204da37eb56ab2414ad6edbe057ec36

Author: Bennet Bo Fenner

Committer: GitHub

## Message

```
chat panel: Fix tooltips not working for links (#9691)

Closes #9418 

Noticed a difference in the `cx.set_tooltip(...)` calls between `div`
and `InteractiveText`. `div` calls `cx.set_tooltip(...)` inside
`after_layout`, but `InteractiveText` was calling this inside `paint`. I
believe as #9012 was merged, we need to call `cx.set_tooltip` inside
`after_layout`, as inserting inside `paint` does not seem to be
supported anymore.

I moved the code for setting the tooltip to `after_layout` and hovering
over links inside the chat seems to bring up the tooltips again.

Before:

See https://github.com/zed-industries/zed/issues/9418#issue-2189398784

After:


![image](https://github.com/zed-industries/zed/assets/53836821/a623164c-1ce0-40d7-bc53-020f176fba4a)


Release Notes:

- Fixed tooltip not showing up when hovering over links inside the chat
panel ([#9418](https://github.com/zed-industries/zed/issues/9418))
```

## Parents

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

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