Skip to content

Commit

Permalink
chore: add temporary banner related to 60-day transactions history li…
Browse files Browse the repository at this point in the history
…mitation. (#1365)

Signed-off-by: Simon Viénot <simon.vienot@icloud.com>
  • Loading branch information
svienot committed Sep 18, 2024
1 parent 526bd73 commit 6fd90ec
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/assets/styles/explorer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,18 @@ hr.dotted {
--oruga-tooltip-content-weight-normal: 300;
}

//
// BANNER
//

.h-banner-link {
text-decoration: underline;
}

.h-banner-link:hover {
color: black
}

//
// ORUGA TABLES
//
Expand Down
7 changes: 7 additions & 0 deletions src/pages/AccountDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

<section :class="{'h-mobile-background': isTouchDevice || !isSmallScreen}" class="section">

<div v-if="temporaryBanner" class="hero is-small mb-5" style="background-color: var(--h-theme-highlight-color);">
<div class="hero-body h-is-property-text p-3" v-html="temporaryBanner"/>
</div>

<DashboardCard collapsible-key="accountDetails">
<template v-if="!isInactiveEvmAddress" v-slot:title>
<span class="h-is-primary-title">Account </span>
Expand Down Expand Up @@ -397,6 +401,8 @@ export default defineComponent({
},
setup(props) {
const temporaryBanner = import.meta.env.VITE_APP_TEMPORARY_BANNER ?? null
const isSmallScreen = inject('isSmallScreen', true)
const isMediumScreen = inject('isMediumScreen', true)
const isTouchDevice = inject('isTouchDevice', false)
Expand Down Expand Up @@ -539,6 +545,7 @@ export default defineComponent({
onBeforeUnmount(() => nameQuery.unmount())
return {
temporaryBanner,
isSmallScreen,
isMediumScreen,
isTouchDevice,
Expand Down
7 changes: 7 additions & 0 deletions src/pages/Transactions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@

<section class="section" :class="{'h-mobile-background': isTouchDevice || !isSmallScreen}">

<div v-if="temporaryBanner" class="hero is-small mb-5" style="background-color: var(--h-theme-highlight-color);">
<div class="hero-body h-is-property-text p-3" v-html="temporaryBanner"/>
</div>

<DashboardCard>
<template v-slot:title>
<span class="h-is-primary-title">Recent Transactions</span>
Expand Down Expand Up @@ -80,6 +84,8 @@ export default defineComponent({
},
setup() {
const temporaryBanner = import.meta.env.VITE_APP_TEMPORARY_BANNER ?? null
const isSmallScreen = inject('isSmallScreen', true)
const isTouchDevice = inject('isTouchDevice', false)
Expand All @@ -102,6 +108,7 @@ export default defineComponent({
onBeforeUnmount(() => transactionTableController.unmount())
return {
temporaryBanner,
isSmallScreen,
isTouchDevice,
transactionTableController,
Expand Down

0 comments on commit 6fd90ec

Please sign in to comment.