mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
e57f209056
Summary: I have blame enabled by default and displaying files with long history takes easily over 10 seconds. Load the blame data by AJAX instead. This is actually doing more work and the total response time is longer but it's worth it for me as I am interested just in the file contents quite often. I know you were talking about building blame cache but until we have it... I'm not sure if the AJAX loading indicator in bottom right corner is enough to inform the user that we are loading it on background. Test Plan: ?view=highlighted ?view=plainblame ?view=blame Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5244
86 lines
1.6 KiB
CSS
86 lines
1.6 KiB
CSS
/**
|
|
* @provides diffusion-source-css
|
|
*/
|
|
|
|
.diffusion-source {
|
|
margin: 1em 0 2em;
|
|
width: 100%;
|
|
font-family: "Monaco", Consolas, monospace;
|
|
font-size: 10px;
|
|
}
|
|
|
|
.diffusion-source tr.highlighted {
|
|
background: #ffff00;
|
|
}
|
|
|
|
.diffusion-source th {
|
|
text-align: right;
|
|
vertical-align: top;
|
|
background: #eeeeee;
|
|
color: #888888;
|
|
border-style: solid;
|
|
border-width: 0px 1px;
|
|
border-color: #eeeeee #999999 #eeeeee #dddddd;
|
|
font-family: "Verdana";
|
|
font-size: 11px;
|
|
}
|
|
|
|
.diffusion-source td {
|
|
letter-spacing: 0.0083334px;
|
|
vertical-align: top;
|
|
white-space: pre-wrap;
|
|
padding-bottom: 1px;
|
|
padding-left: 8px;
|
|
line-height: 16px;
|
|
width: 100%;
|
|
}
|
|
|
|
.diffusion-browse-type-form {
|
|
float: right;
|
|
}
|
|
|
|
.diffusion-blame-link,
|
|
.diffusion-rev-link,
|
|
.diffusion-author-link {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.diffusion-blame-link {
|
|
min-width: 25px;
|
|
}
|
|
|
|
.diffusion-rev-link {
|
|
min-width: 90px;
|
|
}
|
|
|
|
.diffusion-author-link {
|
|
min-width: 120px;
|
|
}
|
|
|
|
.diffusion-blame-link a,
|
|
.diffusion-rev-link a,
|
|
.diffusion-author-link a,
|
|
.diffusion-line-link a {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.diffusion-rev-link a,
|
|
.diffusion-author-link span,
|
|
.diffusion-author-link a {
|
|
margin: 0 8px;
|
|
}
|
|
|
|
.diffusion-blame-link a,
|
|
.diffusion-line-link a {
|
|
/* Give the user a larger click target. */
|
|
display: block;
|
|
padding: 2px 8px;
|
|
}
|
|
|
|
.diffusion-line-link {
|
|
-moz-user-select: -moz-none;
|
|
-khtml-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|