Commit 63f10d27 authored by Jacques Erasmus's avatar Jacques Erasmus

Merge branch 'improve-blame-scroll-ux' into 'master'

Improve User Exprience for Blame page

See merge request gitlab-org/gitlab!73173
parents b9625fa9 53ec5600
......@@ -146,13 +146,6 @@
* Blame file
*/
&.blame {
//
// IMPORTANT PERFORMANCE OPTIMIZATION
//
// When viewinng a blame with many commits a lot of content is rendered on the page.
// The line below ensures that we only render what is visible to the user, thus reducing TBT in the browser.
content-visibility: auto;
table {
border: 0;
margin: 0;
......@@ -167,12 +160,6 @@
}
td {
//
// IMPORTANT PERFORMANCE OPTIMIZATION
//
// When viewinng a blame with many commits a lot of content is rendered on the page.
// The line below ensures that we only render what is visible to the user, thus reducing TBT in the browser.
content-visibility: auto;
border-top: 0;
border-bottom: 0;
......@@ -235,6 +222,21 @@
color: $gray-900;
}
}
//
// IMPORTANT PERFORMANCE OPTIMIZATION
//
// When viewinng a blame with many commits a lot of content is rendered on the page.
// Two selectors below ensure that we only render what is visible to the user, thus reducing TBT in the browser.
.commit {
content-visibility: auto;
contain-intrinsic-size: 1px 3em;
}
code .line {
content-visibility: auto;
contain-intrinsic-size: 1px 1.1875rem;
}
}
&.logs {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment