diff --git a/packages/connect-button/src/components/card/request-card.ts b/packages/connect-button/src/components/card/request-card.ts index fbab9f8c..c962ce67 100644 --- a/packages/connect-button/src/components/card/request-card.ts +++ b/packages/connect-button/src/components/card/request-card.ts @@ -259,7 +259,6 @@ export class RadixRequestCard extends LitElement { :host { display: flex; width: 100%; - margin-bottom: 10px; } .text-dimmed { diff --git a/packages/connect-button/src/components/card/request-cards.ts b/packages/connect-button/src/components/card/request-cards.ts index 882fe79e..6dcd6e96 100644 --- a/packages/connect-button/src/components/card/request-cards.ts +++ b/packages/connect-button/src/components/card/request-cards.ts @@ -1,4 +1,4 @@ -import { html, LitElement } from 'lit' +import { css, html, LitElement } from 'lit' import { customElement, property } from 'lit/decorators.js' import { themeCSS } from '../../theme' import '../card/request-card' @@ -16,13 +16,23 @@ export class RadixRequestCards extends LitElement { type="${requestItem.type}" status="${requestItem.status}" id="${requestItem.interactionId}" + hash="${requestItem.transactionIntentHash || ''}" ?showCancel="${requestItem.showCancel}" timestamp=${requestItem.createdAt} >`, ) } - static styles = [themeCSS] + static styles = [ + themeCSS, + css` + :host { + display: flex; + flex-direction: column; + gap: 10px; + } + `, + ] } declare global { diff --git a/packages/connect-button/src/components/pages/requests.ts b/packages/connect-button/src/components/pages/requests.ts index 98f09ba8..667b7178 100644 --- a/packages/connect-button/src/components/pages/requests.ts +++ b/packages/connect-button/src/components/pages/requests.ts @@ -1,6 +1,6 @@ import { css, html, LitElement } from 'lit' import { customElement, property } from 'lit/decorators.js' -import '../card/request-card' +import '../card/request-cards' import { RequestItem } from 'radix-connect-common' import { pageStyles } from './styles' import { formatTimestamp } from '../../helpers/format-timestamp' @@ -22,7 +22,7 @@ export class RadixRequestsPage extends LitElement { render() { return html` -
Connected to ${this.dAppName}
+
Connected to ${this.dAppName || "dApp"}
${this.loggedInTimestamp ? html`
@@ -30,17 +30,7 @@ export class RadixRequestsPage extends LitElement {
` : ''}
- ${(this.requestItems || []).map( - (requestItem) => - html``, - )} +
` } @@ -55,17 +45,6 @@ export class RadixRequestsPage extends LitElement { text-align: center; font-size: 12px; } - - .content { - padding-bottom: 25px; - max-height: calc(100vh - 270px); - } - - @media (min-height: 580px) { - .content { - max-height: 360px; - } - } `, ] } diff --git a/packages/connect-button/src/components/pages/sharing.ts b/packages/connect-button/src/components/pages/sharing.ts index ab8c5716..f0407364 100644 --- a/packages/connect-button/src/components/pages/sharing.ts +++ b/packages/connect-button/src/components/pages/sharing.ts @@ -59,7 +59,7 @@ export class RadixSharingPage extends LitElement { } render() { - return html`
Sharing with ${this.dAppName}
+ return html`
Sharing with ${this.dAppName || "dApp"}