Skip to content

Commit

Permalink
fix: styling
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Schmidt <[email protected]>
  • Loading branch information
Sheng-Long committed Mar 12, 2024
1 parent 739c01c commit de233c2
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
22 changes: 18 additions & 4 deletions src/components/DateTimePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<!--Documentation for vue-datepicker: https://vue3datepicker.com-->

<template>
<div class="is-flex is-align-items-center" style="margin-right: 8px">
<Datepicker v-model="date" @closed="handleClosed" @cleared="handleCleared"/>
<div class="is-flex is-align-items-center">
<Datepicker v-model="date" placeholder="SELECT A DATE" :is-24="false" time-picker-inline dark @closed="handleClosed" @cleared="handleCleared"/>
</div>
</template>

Expand Down Expand Up @@ -50,7 +50,7 @@ export default defineComponent({
},

setup(props) {
const date = ref()
const date = ref(new Date())
const handleClosed = () => {
if (props.controller) {
const controller = props.controller
Expand Down Expand Up @@ -86,4 +86,18 @@ export default defineComponent({
<!-- STYLE -->
<!-- --------------------------------------------------------------------------------------------------------------- -->

<style/>
<style>
.dp__theme_dark {
--dp-background-color: var(--h-theme-box-background-color);
--dp-primary-color: #575757;
--dp-border-color: white;
--dp-border-color-hover: white;
--dp-icon-color: white;
}
:root {
--dp-font-family: "Styrene A Web", sans-serif;
--dp-border-radius: 0;
--dp-font-size: 11px;
--dp-input-padding: 3.5px 30px 3.5px 12px
}
</style>
10 changes: 8 additions & 2 deletions src/pages/AccountDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@
<o-field style="margin-bottom: 0">
<o-select v-model="timeSelection" class="ml-2 h-is-text-size-1">
<option value="LATEST" @click="onLatest">LATEST</option>
<option value="JUMP">JUMP TO DATE</option>
<option value="JUMP" @click="onJump">JUMP TO DATE</option>
</o-select>
</o-field>
<TransactionFilterSelect :controller="transactionTableController"/>
Expand Down Expand Up @@ -372,10 +372,15 @@ export default defineComponent({
const isTouchDevice = inject('isTouchDevice', false)

const timeSelection = ref("LATEST")

function onLatest() {
transactionTableController.startAutoRefresh()
}

function onJump() {
transactionTableController.stopAutoRefresh()
}

//
// account
//
Expand Down Expand Up @@ -497,7 +502,8 @@ export default defineComponent({
handleTabUpdate,
filterVerified,
timeSelection,
onLatest
onLatest,
onJump
}
}
});
Expand Down

0 comments on commit de233c2

Please sign in to comment.