summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/framework/files.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/framework/files.scss')
-rw-r--r--app/assets/stylesheets/framework/files.scss32
1 files changed, 19 insertions, 13 deletions
diff --git a/app/assets/stylesheets/framework/files.scss b/app/assets/stylesheets/framework/files.scss
index df78543f96d..8f65f349cf9 100644
--- a/app/assets/stylesheets/framework/files.scss
+++ b/app/assets/stylesheets/framework/files.scss
@@ -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,25 @@
color: $gray-900;
}
}
+
+ //
+ // IMPORTANT PERFORMANCE OPTIMIZATION
+ //
+ // When viewinng a blame with many commits a lot of content is rendered on the page.
+ // content-visibility rules 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;
+ }
+
+ .line-numbers {
+ content-visibility: auto;
+ }
}
&.logs {