fix: 修复表格行号展示问题

This commit is contained in:
purocean
2021-08-02 10:55:46 +08:00
parent 563a648dd1
commit a01c350f7e
+11 -12
View File
@@ -491,19 +491,18 @@ export default defineComponent({
table.source-line tbody {
counter-reset: tr-number;
tr {
&:hover {
outline: 2px #b3833b dashed;
}
&:hover td:first-child:before {
counter-increment: tr-number;
content: counter(tr-number);
position: absolute;
right: 100%;
padding-right: 5px;
color: #999;
font-family: monospace;
}
td:first-child:before {
counter-increment: tr-number;
content: counter(tr-number);
position: absolute;
right: 100%;
padding-right: 5px;
color: #999;
}
tr:hover {
outline: 2px #b3833b dashed;
}
}
}