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 2020 Clear History
2121 </div >
2222 <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+
2432
2533 <div @click =" delete_hist(history_box.key)" style =" float :right ; margin-top : 10px ;" class =" l_button" >Delete</div >
2634 <!-- <div @click="share_on_arthub(history_box)" style="float:right; margin-top: 10px;" class="l_button">Share</div> -->
@@ -87,7 +95,8 @@ export default {
8795 },
8896 data () {
8997 return {
90- searchText: ' '
98+ searchText: ' ' ,
99+ currentPage: 1 ,
91100 };
92101 },
93102 methods: {
@@ -157,6 +166,24 @@ export default {
157166}
158167 </script >
159168<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+ }
160187 </style >
161188<style scoped>
162189.history_box_info {
You can’t perform that action at this time.
0 commit comments