Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[update][655] responsive for mobile #3628

Merged
merged 3 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/app/core/helpers/global-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ import { ErrorHandler, Injectable } from '@angular/core';
@Injectable()
export class GlobalErrorHandler implements ErrorHandler {

handleError(error: any): void {
console.log(error);

handleError(error: any): void {
const chunkFailedMessage = /Loading chunk [\d]+ failed/;

if (chunkFailedMessage.test(error?.message)) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div *ngIf="!isDataField" class="decode-message d-flex justify-content-start align-items-start col-12 d-flex gap-3"
[class]="!isMobile ? 'flex-nowrap' : 'flex-wrap'">
<div *ngIf="!isDataField" class="decode-message d-flex justify-content-start align-items-start col-12 d-flex"
[class]="isMobile ? isAllowSwitchDecode ? 'flex-wrap gap-2' : 'flex-nowrap' : 'flex-nowrap gap-3'">
<div class="param-field d-flex gap-3 justify-content-center align-items-start flex-nowrap">
<p *ngIf="index !== ''" class="name">
{{index}} <span *ngIf="name">: {{ name }}</span>
Expand Down Expand Up @@ -27,7 +27,7 @@
<p class="mb-1 font-space-mono">{{value}}</p>
<p class="mb-0 font-space-mono" [innerHTML]="decode | highlight_function"></p>
</div>
<div *ngIf="isAllowSwitchDecode" class="data flex-grow-1" [class]="isHighlight ? 'highlight' : ''">
<div *ngIf="isAllowSwitchDecode" class="data flex-grow-1" [class]="isEvmContract ? 'd-flex align-items-center' : ''">
<img
[src]="'assets/images/icons/token-contract.svg' | imageS3"
width="16px"
Expand All @@ -50,15 +50,15 @@
<p class="font-space-mono">{{ data }}</p>
</div>
<div *ngIf="type === 'Decode'">
<div class="data-item">
<div class="data-item" [style]="isMobile ? 'grid-template-columns: minmax(40px, max-content) 1fr' : ''">
<ng-container *ngFor="let item of data">
<p class="item-name">{{item?.name}}</p>
<a *ngIf="item?.isLink" class="text--primary font-space-mono" routerLink="/address/{{ item?.decode }}">
{{item?.decode}}
</a>
<div *ngIf="!item?.isLink" class="font-space-mono">
<div *ngIf="item?.type === 'tuple'" class="d-flex flex-wrap gap-2 align-items-center">
<div *ngFor="let dataDecoded of item?.decode">
<div *ngFor="let dataDecoded of item?.decode" [class]="dataDecoded?.isEvmContract ? 'd-flex align-items-center' : ''">
<img
[src]="'assets/images/icons/token-contract.svg' | imageS3"
width="16px"
Expand Down