carbon-app / carbon

:black_heart: Create and share beautiful images of your source code
https://carbon.now.sh
MIT License
34.43k stars 1.91k forks source link

Code is horizontally clipped when viewed in Medium as embedded content #1259

Open oconnelltoby opened 2 years ago

oconnelltoby commented 2 years ago

Describe the bug Code is horizontally clipped when viewed in Medium as embedded content

To Reproduce

Expected behavior I would expect to be able to scroll left and right to see the rest of the code

Screenshots

Info (please complete the following information):

Code snippet

```swift import UIKit public extension UIScrollView { convenience init(stackView: UIStackView) { self.init(frame: .zero) stackView.translatesAutoresizingMaskIntoConstraints = false addSubview(stackView) NSLayoutConstraint.activate([ stackView.topAnchor.constraint(equalTo: contentLayoutGuide.topAnchor), stackView.bottomAnchor.constraint(equalTo: contentLayoutGuide.bottomAnchor), stackView.leadingAnchor.constraint(equalTo: safeAreaLayoutGuide.leadingAnchor), stackView.trailingAnchor.constraint(equalTo: safeAreaLayoutGuide.trailingAnchor), contentLayoutGuide.widthAnchor.constraint(equalTo: widthAnchor), ]) } } ```

mfix22 commented 2 years ago

@oconnelltoby since you have recreated this issue, would absolutely love it if you were able to push up the fix for this.

Kkkiiiirran commented 1 month ago

@mfix22 Hi, I wanted to help with this issue. But I am new to open source. I followed your contribution guide but I am unable to start your application.

It is giving me this:

image.

Can you please help me with this, what might have been the issue?