# Github boxes should be truncated

**URL:** https://meta.discourse.org/t/github-boxes-should-be-truncated/22396
**Category:** Feature
**Created:** [November 21, 2014, 4:19pm UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396 "2014-11-21T16:19:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![rumpelsepp](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rumpelsepp](https://meta.discourse.org/u/rumpelsepp)
#### Post date: [November 21, 2014, 4:19pm UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/1 "2014-11-21T16:19:00Z")

</div>

I think the text in the github boxes should be truncated. It does not look beautiful when linking to a commit with a long description, see this example:

[https://github.com/torvalds/linux/commit/45eaf45dfa4850df16bc2e8e7903d89021137f40](https://github.com/torvalds/linux/commit/45eaf45dfa4850df16bc2e8e7903d89021137f40)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 24, 2014, 12:08am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/2 "2014-11-24T00:08:33Z")

</div>

Sure, PR to onebox welcome [GitHub - discourse/onebox: (DEPRECATED) A gem for turning URLs into website previews · GitHub](https://github.com/discourse/onebox)

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [November 24, 2014, 12:32am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/3 "2014-11-24T00:32:23Z")

</div>

> [@rumpelsepp](#):
>
> I think the text in the github boxes should be truncated. It does not look beautiful when linking to a commit with a long description, see this example:

Here’s a better idea: Only the first line of the commit should be in the big size and blue, the later lines should be non-bold and normal, and have proper linebreaks in them.

Would be more difficult to do, though.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [November 24, 2014, 12:33am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/4 "2014-11-24T00:33:24Z")

</div>

We needs less imagineering here and more shipping 🙂

---

<div class="post-metadata">

### Author: ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)
#### Post date: [November 24, 2014, 12:34am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/5 "2014-11-24T00:34:07Z")

</div>

Yep, it’s entirely possible that what I described would be butt-ugly…

---

<div class="post-metadata">

### Author: ![rumpelsepp](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rumpelsepp](https://meta.discourse.org/u/rumpelsepp)
#### Post date: [November 24, 2014, 11:02pm UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/6 "2014-11-24T23:02:56Z")

</div>

I am not that Ruby pro, but I will have a look at this. Maybe I am able to fix it. 😊

Try this one [[github\_commit] Extract the first line of a commit as the title by rumpelsepp · Pull Request #257 · discourse/onebox · GitHub](https://github.com/discourse/onebox/pull/257)

---

<div class="post-metadata">

### Author: ![rumpelsepp](https://avatars.discourse-cdn.com/v4/letter/r/bc79bd/32.png) [@rumpelsepp](https://meta.discourse.org/u/rumpelsepp)
#### Post date: [January 27, 2015, 9:42am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/7 "2015-01-27T09:42:24Z")

</div>

[https://github.com/discourse/onebox/pull/257](https://github.com/discourse/onebox/pull/257)

merged, could be closed, @codinghorror

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [January 27, 2015, 9:46am UTC](https://meta.discourse.org/t/github-boxes-should-be-truncated/22396/8 "2015-01-27T09:46:42Z")

</div>


