File tree Expand file tree Collapse file tree 1 file changed +29
-2
lines changed
electron_app/src/components Expand file tree Collapse file tree 1 file changed +29
-2
lines changed Original file line number Diff line number Diff line change 20
20
Clear History
21
21
</div >
22
22
<div v-if =" Object.values(app_state.app_data.history).length > 0" >
23
- <div v-for =" history_box in get_history()" :key =" history_box.key" style =" clear : both ;" >
23
+ <div v-if =" Object.values(app_state.app_data.history).length > 30" >
24
+ <b-pagination
25
+ v-model =" currentPage"
26
+ :total-rows =" Object.values(app_state.app_data.history).length"
27
+ :per-page =" 30"
28
+ />
29
+ </div >
30
+ <div v-for =" history_box in get_history().slice((currentPage - 1) * 30, currentPage * 30)" :key =" history_box.key" style =" clear : both ;" >
31
+
24
32
25
33
<div @click =" delete_hist(history_box.key)" style =" float :right ; margin-top : 10px ;" class =" l_button" >Delete</div >
26
34
<!-- <div @click="share_on_arthub(history_box)" style="float:right; margin-top: 10px;" class="l_button">Share</div> -->
@@ -87,7 +95,8 @@ export default {
87
95
},
88
96
data () {
89
97
return {
90
- searchText: ' '
98
+ searchText: ' ' ,
99
+ currentPage: 1 ,
91
100
};
92
101
},
93
102
methods: {
@@ -157,6 +166,24 @@ export default {
157
166
}
158
167
</script >
159
168
<style >
169
+ .page-item .page-link {
170
+ outline : none !important ;
171
+ box-shadow : none ;
172
+ }
173
+ .page-item .page-link {
174
+ font-size : 13px ;
175
+ }
176
+ @media (prefers-color-scheme: dark) {
177
+ .page-item .page-link , .page-item.disabled .page-link {
178
+ background-color :#303030 ;
179
+ border-color : #303030 ;
180
+ color :rgba (255 , 255 , 255 , 0.5 );
181
+ }
182
+ .page-item.active .page-link {
183
+ background-color :#606060 ;
184
+ border-color : #606060 ;
185
+ }
186
+ }
160
187
</style >
161
188
<style scoped>
162
189
.history_box_info {
You can’t perform that action at this time.
0 commit comments