# Copy Codeblocks Theme Component

**URL:** <https://meta.discourse.org/t/copy-codeblocks-theme-component/147441>\
**Category:** Theme component\
**Tags:** deprecated\
**Created:** [April 9, 2020, 5:32pm UTC](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441 "2020-04-09T17:32:04Z")\
**Posts on this page:** 1\
**Showing post:** 21

<div class="post-metadata">

**Author:** ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)\
**Post date:** [April 11, 2020, 7:34am UTC](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441/21 "2020-04-11T07:34:41Z")

</div>

So I made multiple changes here. Given our problems were:

- screen space on mobile
- copy text bug on quote
- and we have had request of having an icon instead of text

The obvious solution solving all of this… was to use an icon.

On mobile it’s now acceptable to have it on the right, given it takes less space and we can just have some padding for text:

 ![Screenshot 2020-04-11 at 09.30.10](https://global.discourse-cdn.com/meta/original/3X/3/9/398e4cf07491a7b2e67095f75fbd834469c121ff.png)

Only minor annoyance, on long FIRST lines it will be hidden behind button, I think it’s acceptable given you can scroll:

 ![Screenshot 2020-04-11 at 09.53.01](https://global.discourse-cdn.com/meta/original/3X/0/2/022c872688c2b5ec0cf9cc5e9a6244eb53867e61.png)

And in Desktop it will work as before without the quoting bug:

 ![Screenshot 2020-04-11 at 09.30.41](https://global.discourse-cdn.com/meta/original/3X/d/7/d77f96ffad65a7788bdb0a78e771fc2dca8bcce8.png)

Concerning, the possible perf bug, I tried a page with dozens of code blocks and got 0 issue, so I will need a reproduction before I can do anything @lcestou please

Try the new codeblock here:

```plaintext
rsync -a file.txt file_backup.txt
rsync -a /var/www/public_html/ /var/www/public_html_backup/

```

---

_[View the full topic](https://meta.discourse.org/t/copy-codeblocks-theme-component/147441)._
