set tab-size to 2 in code_diff_old_code_block and code_diff_new_code_block to make tabs align properly inside span in google chrome. there should be a proper way. i'm ignorant about it
This commit is contained in:
parent
ad5e55ba53
commit
e6160ea32d
@ -428,7 +428,7 @@ $this->load->view (
|
||||
}
|
||||
print '</span>';
|
||||
|
||||
print '<code class="codepot-line-numbered-code prettyprint lang-{$fileext}">';
|
||||
print '<code id="code_diff_old_code_block" class="codepot-line-numbered-code prettyprint lang-{$fileext}">';
|
||||
$actual_line_no = 1;
|
||||
foreach ($file['content'] as $x)
|
||||
{
|
||||
@ -527,7 +527,7 @@ $this->load->view (
|
||||
}
|
||||
print '</span>';
|
||||
|
||||
print '<code class="codepot-line-numbered-code prettyprint lang-{$fileext}" class="codepot-line-numbered-code">';
|
||||
print '<code id="code_diff_new_code_block" class="codepot-line-numbered-code prettyprint lang-{$fileext}" class="codepot-line-numbered-code">';
|
||||
$actual_line_no = 1;
|
||||
foreach ($file['content'] as $x)
|
||||
{
|
||||
|
@ -520,6 +520,15 @@
|
||||
background-color: black;
|
||||
}
|
||||
|
||||
#code_diff_old_code_block,
|
||||
#code_diff_new_code_block {
|
||||
/* in google-chrome, i can't align tabs properly with a different tab size in this view.
|
||||
* tabs in this view are shown in spans unlike the main code view */
|
||||
tab-size: 2;
|
||||
-moz-tab-size: 2;
|
||||
-o-tab-size: 2;
|
||||
}
|
||||
|
||||
/*-----------------------------------------------
|
||||
* project source search view (including folder view)
|
||||
*-----------------------------------------------*/
|
||||
|
Loading…
Reference in New Issue
Block a user