Fixed Issue 138: Numbers should be right-justified
git-svn-id: http://google-refine.googlecode.com/svn/trunk@1404 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
935355cb50
commit
3429595b0d
@ -32,6 +32,9 @@ DataTableCellUI.prototype._render = function() {
|
|||||||
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
$('<span>').addClass("data-table-error").text(cell.e).appendTo(divContent);
|
||||||
} else if (!("r" in cell) || !cell.r) {
|
} else if (!("r" in cell) || !cell.r) {
|
||||||
if (typeof cell.v !== "string") {
|
if (typeof cell.v !== "string") {
|
||||||
|
if (typeof cell.v == "number") {
|
||||||
|
divContent.addClass("data-table-cell-content-numeric");
|
||||||
|
}
|
||||||
$('<span>')
|
$('<span>')
|
||||||
.addClass("data-table-value-nonstring")
|
.addClass("data-table-value-nonstring")
|
||||||
.text(cell.v)
|
.text(cell.v)
|
||||||
|
@ -112,6 +112,10 @@ table.viewPanel-header td {
|
|||||||
div.data-table-cell-content {
|
div.data-table-cell-content {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
div.data-table-cell-content-numeric {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
|
||||||
a.data-table-cell-edit {
|
a.data-table-cell-edit {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0px;
|
||||||
@ -128,6 +132,11 @@ a.data-table-cell-edit {
|
|||||||
a.data-table-cell-edit:hover {
|
a.data-table-cell-edit:hover {
|
||||||
background-position: -30px 0px;
|
background-position: -30px 0px;
|
||||||
}
|
}
|
||||||
|
div.data-table-cell-content-numeric > a.data-table-cell-edit {
|
||||||
|
left: 0px;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.data-table-value-nonstring {
|
.data-table-value-nonstring {
|
||||||
color: #880;
|
color: #880;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user