Merge pull request #1506 from TechMiX/rtlFixes2

fix RTL layout issues
This commit is contained in:
softsimon 2022-04-10 00:32:13 +04:00 committed by GitHub
commit ac5749f493
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 55 additions and 9 deletions

3
contributors/TechMiX.txt Normal file
View File

@ -0,0 +1,3 @@
I hereby accept the terms of the Contributor License Agreement in the CONTRIBUTING.md file of the mempool/mempool git repository as of January 25, 2022.
Signed: TechMiX

View File

@ -55,7 +55,7 @@
<br> <br>
<div class="title-tx"> <div class="title-tx">
<h2> <h2 class="text-left">
<ng-template [ngIf]="!transactions?.length">&nbsp;</ng-template> <ng-template [ngIf]="!transactions?.length">&nbsp;</ng-template>
<ng-template i18n="X of X Address Transaction" [ngIf]="transactions?.length === 1">{{ (transactions?.length | number) || '?' }} of {{ txCount | number }} transaction</ng-template> <ng-template i18n="X of X Address Transaction" [ngIf]="transactions?.length === 1">{{ (transactions?.length | number) || '?' }} of {{ txCount | number }} transaction</ng-template>
<ng-template i18n="X of X Address Transactions (Plural)" [ngIf]="transactions?.length > 1">{{ (transactions?.length | number) || '?' }} of {{ txCount | number }} transactions</ng-template> <ng-template i18n="X of X Address Transactions (Plural)" [ngIf]="transactions?.length > 1">{{ (transactions?.length | number) || '?' }} of {{ txCount | number }} transactions</ng-template>

View File

@ -163,7 +163,7 @@
</div> </div>
<div #blockTxTitle id="block-tx-title" class="block-tx-title"> <div #blockTxTitle id="block-tx-title" class="block-tx-title">
<h2> <h2 class="text-left">
<ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container> <ng-container *ngTemplateOutlet="block.tx_count === 1 ? transactionsSingular : transactionsPlural; context: {$implicit: block.tx_count | number}"></ng-container>
<ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template> <ng-template #transactionsSingular let-i i18n="shared.transaction-count.singular">{{ i }} transaction</ng-template>
<ng-template #transactionsPlural let-i i18n="shared.transaction-count.plural">{{ i }} transactions</ng-template> <ng-template #transactionsPlural let-i i18n="shared.transaction-count.plural">{{ i }} transactions</ng-template>

View File

@ -1,4 +1,4 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit, HostBinding } from '@angular/core';
import { ActivatedRoute } from '@angular/router'; import { ActivatedRoute } from '@angular/router';
import { Env, StateService } from 'src/app/services/state.service'; import { Env, StateService } from 'src/app/services/state.service';
@ -13,6 +13,8 @@ export class DocsComponent implements OnInit {
env: Env; env: Env;
showWebSocketTab = true; showWebSocketTab = true;
@HostBinding('attr.dir') dir = 'ltr';
constructor( constructor(
private route: ActivatedRoute, private route: ActivatedRoute,
private stateService: StateService, private stateService: StateService,

View File

@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, LOCALE_ID, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, LOCALE_ID, OnInit, HostBinding } from '@angular/core';
import { EChartsOption, graphic } from 'echarts'; import { EChartsOption, graphic } from 'echarts';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/operators'; import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/operators';
@ -35,6 +35,8 @@ export class HashrateChartComponent implements OnInit {
renderer: 'svg', renderer: 'svg',
}; };
@HostBinding('attr.dir') dir = 'ltr';
hashrateObservable$: Observable<any>; hashrateObservable$: Observable<any>;
isLoading = true; isLoading = true;
formatNumber = formatNumber; formatNumber = formatNumber;

View File

@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, LOCALE_ID, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Inject, Input, LOCALE_ID, OnInit, HostBinding } from '@angular/core';
import { EChartsOption } from 'echarts'; import { EChartsOption } from 'echarts';
import { Observable } from 'rxjs'; import { Observable } from 'rxjs';
import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/operators'; import { delay, map, retryWhen, share, startWith, switchMap, tap } from 'rxjs/operators';
@ -33,6 +33,8 @@ export class HashrateChartPoolsComponent implements OnInit {
renderer: 'svg', renderer: 'svg',
}; };
@HostBinding('attr.dir') dir = 'ltr';
hashrateObservable$: Observable<any>; hashrateObservable$: Observable<any>;
isLoading = true; isLoading = true;

View File

@ -1,4 +1,4 @@
import { ChangeDetectionStrategy, Component, Input, NgZone, OnInit } from '@angular/core'; import { ChangeDetectionStrategy, Component, Input, NgZone, OnInit, HostBinding } from '@angular/core';
import { FormBuilder, FormGroup } from '@angular/forms'; import { FormBuilder, FormGroup } from '@angular/forms';
import { Router } from '@angular/router'; import { Router } from '@angular/router';
import { EChartsOption, PieSeriesOption } from 'echarts'; import { EChartsOption, PieSeriesOption } from 'echarts';
@ -31,6 +31,8 @@ export class PoolRankingComponent implements OnInit {
}; };
chartInstance: any = undefined; chartInstance: any = undefined;
@HostBinding('attr.dir') dir = 'ltr';
miningStatsObservable$: Observable<MiningStats>; miningStatsObservable$: Observable<MiningStats>;
constructor( constructor(

View File

@ -200,7 +200,7 @@
<app-transactions-list #txList [transactions]="[tx]" [errorUnblinded]="errorUnblinded" [outputIndex]="outputIndex" [transactionPage]="true"></app-transactions-list> <app-transactions-list #txList [transactions]="[tx]" [errorUnblinded]="errorUnblinded" [outputIndex]="outputIndex" [transactionPage]="true"></app-transactions-list>
<div class="title"> <div class="title text-left">
<h2 i18n="transaction.details">Details</h2> <h2 i18n="transaction.details">Details</h2>
</div> </div>
<div class="box"> <div class="box">

View File

@ -698,6 +698,16 @@ th {
margin-right: 0px; margin-right: 0px;
text-align: right; text-align: right;
} }
.nav-pills {
@extend .nav-pills;
display: inline-block;
}
.description {
direction: rtl;
}
.dropdown { .dropdown {
margin-right: 1rem; margin-right: 1rem;
margin-left: 0; margin-left: 0;
@ -712,12 +722,29 @@ th {
left: 0px; left: 0px;
right: auto; right: auto;
} }
.fa-arrow-alt-circle-right { .fa-circle-right {
@extend .fa-arrow-alt-circle-right; @extend .fa-circle-right;
-webkit-transform: scaleX(-1); -webkit-transform: scaleX(-1);
transform: scaleX(-1); transform: scaleX(-1);
} }
.btn.ml-2 {
margin-right: 0.5rem !important;
}
.pool-name {
@extend .pool-name;
padding-right: 10px;
}
.endpoint-container {
@extend .endpoint-container;
.section-header {
@extend .section-header;
text-align: left;
}
}
.table td { .table td {
text-align: right; text-align: right;
.fiat { .fiat {
@ -809,6 +836,14 @@ th {
} }
} }
.full-container {
@extend .full-container;
.formRadioGroup {
@extend .formRadioGroup;
direction: ltr;
}
}
.mempool-graph { .mempool-graph {
@extend .mempool-graph; @extend .mempool-graph;
direction: ltr; direction: ltr;