Skip to content

GitLab Diff Disable Wrapping by lygaret

Details

Authorlygaret

LicenseNo License

Categorygitlab

Created

Updated

Size1.1 kB

Statistics

Learn how we calculate statistics in the FAQ.

Failed to fetch stats.

Description

Disables Line Wrapping it GitLab Diffs

Notes

Userstyle doesn't have notes.

Source code

/* ==UserStyle==
@name         GitLab Diff Disable Wrapping
@version      20220304.18.44
@namespace    userstyles.world/user/lygaret
@description  Disables Line Wrapping it GitLab Diffs
@author       lygaret
@license      No License
==/UserStyle== */

@-moz-document url(""), domain("gitlab.com") {
.diff-table.code .diff-tr.line_holder .diff-td span, .diff-table.code tr.line_holder td span, table.code .diff-tr.line_holder .diff-td span, table.code tr.line_holder td span {
  white-space: pre;
}

.diff-table.code .diff-tr.line_holder .diff-td span.line, .diff-table.code tr.line_holder td span.line, table.code .diff-tr.line_holder .diff-td span.line, table.code tr.line_holder td span.line {
  word-wrap: unset;
}

.diff-file .diff-content {
  overflow-x: scroll;
  overflow-y: hidden;
}

.diff-table.code .diff-td span, .diff-table.code td span, table.code .diff-td span, table.code td span {
  white-space: pre;
}

.diff-table.code .diff-tr.line_holder .diff-td span.line {
  word-wrap: unset;
}

.diff-grid.diff-table.code.diff-wrap-lines.js-syntax-highlight.text-file.white.inline-diff-view.left-side-selected {
  white-space: pre;
}
}

Reviews

No reviews yet.