Skip to content

Commit

Permalink
Merge branch 'fix/styles' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
krlz16 committed Aug 28, 2024
2 parents 3bf2ff7 + 66470d8 commit 3740ddc
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2020 IOV Labs
Copyright (c) 2024 RootstockLabs

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 2 additions & 0 deletions src/components/Paginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@ export default {
const prevKey = this.prevKey()(key)
const pageKey = this.pageKey()(key)
const query = { [nextKey]: next, [prevKey]: prev, [pageKey]: page }
console.log('query: ', query)
this.updateRouterQuery({ query, key })
},
findPage (page) {
const { pages } = this
console.log('pages: ', pages)
const index = pages.findIndex(p => p.page === page)
return (index > -1) ? pages[index] : null
}
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/backend/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export const socketNewBlocks = ({ state, commit, getters, dispatch, rootState },

export const socketData = ({ state, commit, getters, dispatch }, res) => {
const { req, pages, error, next, prev, delayed } = res
console.log('pages: ', pages)
const key = req.key
const total = (pages) ? pages.total : null
const sort = (pages) ? pages.sort : null
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/backend/getters.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export const lastBlocksTime = state => {
export const getPageTotal = (state, getters) => key => {
const data = state.responses[key]
const total = (data?.pages && data?.pages.total) ? data?.pages.total : state.totals[key] || null
console.log('total: ', total)
return total
}

Expand Down
15 changes: 15 additions & 0 deletions src/styles/_page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,24 @@
flex: 1 1 100%;
padding: 12px;
gap: 20px;
box-shadow: 0px -1px 0px 0px #3A3A3A inset;
.field-title.big-field, .field-title.BigField, .field-title.event-call {
flex: 1;
}
.big-field:nth-child(2) {
flex-direction: column-reverse;
.decode {
margin-left: unset;
margin-bottom: 10px;
}
textarea {
background-color: #1d1d1d;
padding: 12px;
border-radius: 12px;
height: min-content;
margin: unset;
}
}
.big-field, .event-call {
flex: 5;
textarea {
Expand Down

0 comments on commit 3740ddc

Please sign in to comment.