# agent: Adjust codeblock design across edit file tool call card and Markdown \(\#30931\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e1a2e8a3aa2a63f64a05094d0bd56dc0dcd041e6

Requested commit: e1a2e8a3aa2a63f64a05094d0bd56dc0dcd041e6

Commit: e1a2e8a3aa2a63f64a05094d0bd56dc0dcd041e6

Tree: b0b189d94e40d21d748c6ade86515385f9bac1d0

Author: Danilo Leal

Committer: GitHub

## Message

```
agent: Adjust codeblock design across edit file tool call card and Markdown (#30931)

This PR makes the edit tool call codeblock cards expanded by default, to
be consistent with https://github.com/zed-industries/zed/pull/30806.
Also, I am removing the collapsing behavior of Markdown codeblocks where
we'd add a gradient while capping the container's height based on an
arbitrary number of lines. Figured if they're all now initially
expanded, we could simplify how the design/code operates here
altogether.

Open for feedback, as I can see an argument where the previous Markdown
codeblock design of "collapsed but not fully; it shows a preview" should
stay as it is useful.

Release Notes:

- N/A
```

## Parents

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

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