@@ -30,39 +30,30 @@ function decrement() {
3030
3131<template >
3232<div class =" var-debugger" >
33- <template v-if =" currentEnv " >
34- <table class =" metavar-table" >
35- <thead >
36- <tr >
37- <td >MetaVar Name</td >
38- <td >Matched Node(s)</td >
39- </tr >
40- </thead >
41- <tbody v-if =" currentEnv" >
42- <tr v-for =" (val, key) in currentEnv" >
43- <td >{{key}}</td >
44- <td >
45- <code >
46- {{val.text}}
47- </code >
48- </td >
49- </tr >
50- </tbody >
51- <tfoot >
52- <tr >
53- <td colspan =" 2" >
54- Now it's the {{ currentIndex + 1 }}th matched
55- <span class =" match-count" >({{ currentIndex + 1 }}/{{props.envs.length}})</span >
56- </td >
57- </tr >
58- </tfoot >
59- </table >
60- <div class =" choose-match" >
61- <button @click =" decrement" >Prev Match</button >
62-   ;
63- <button @click =" increment" >Next Match</button >
64- </div >
65- </template >
33+ <table class =" metavar-table" v-if =" currentEnv" >
34+ <thead >
35+ <tr >
36+ <td >MetaVar Name</td >
37+ <td >Matched Node(s)</td >
38+ </tr >
39+ </thead >
40+ <tbody v-if =" currentEnv" >
41+ <tr v-for =" (val, key) in currentEnv" >
42+ <td >{{key}}</td >
43+ <td >
44+ <code >
45+ {{val.text}}
46+ </code >
47+ </td >
48+ </tr >
49+ </tbody >
50+ <tfoot >
51+ <div class =" choose-match-division" />
52+ <button @click =" decrement" >❮</button >
53+ <span class =" match-count" >{{ currentIndex + 1 }}/{{props.envs.length}} match(es)</span >
54+ <button @click =" increment" >❯</button >
55+ </tfoot >
56+ </table >
6657 <Error v-else-if =" error" :error =" error" />
6758 <div v-else class =" vp-doc" >
6859 <div class =" custom-block warning no-match-tip" >
@@ -105,13 +96,21 @@ function decrement() {
10596 border-left : 1px solid var (--vp-c-divider );
10697 width : 75% ;
10798}
108- .metavar-table tfoot .match-count {
109- color : #999 ;
99+ .match-count {
100+ margin : 0 0.5em ;
101+ opacity : 0.8 ;
110102}
111- .choose-match {
103+ .choose-match-division {
112104 margin-top : 1em ;
113105}
114106
107+ tfoot button {
108+ padding : 0 ;
109+ text-align : center ;
110+ line-height : 24px ;
111+ width : 24px ;
112+ }
113+
115114.no-match-tip {
116115 margin-top : 5px ;
117116 border-radius : 5px ;
@@ -127,4 +126,4 @@ function decrement() {
127126.no-match-tip ul > li {
128127 margin-top : 4px ;
129128}
130- </style >
129+ </style >
0 commit comments