CodeEditTextView icon indicating copy to clipboard operation
CodeEditTextView copied to clipboard

✨ Trailing Padding When Not Wrapping

Open thecoolwinter opened this issue 1 year ago • 0 comments

Description

When lines are not wrapped, there should be additional padding added to the trailing edge. This should probably be configurable for other consumers of this package.

Xcode and other editors add a trailing padding when not wrapping lines so there's better spacing visually on the trailing edge. I don't think this is default behavior for text views, which is why it should be either configurable or be able to be disabled. In Xcode, the padding is 48 pixels.

Alternatives Considered

The method in https://github.com/CodeEditApp/CodeEditSourceEditor/pull/272 was considered, but this has it's own issues. This type of text layout should be in the text editor.

Additional Context

No response

Screenshots

No response

thecoolwinter avatar Feb 02 '25 03:02 thecoolwinter