Browse Source

Replace custom utility classes with Bootstrap utilities

pull/8169/head
Thomas Kaul 2 days ago
parent
commit
f75fb13f6f
  1. 10
      apps/client/src/app/components/admin-users/admin-users.html
  2. 2
      apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html
  3. 10
      apps/client/src/app/pages/pricing/pricing-page.html
  4. 12
      apps/client/src/styles.scss
  5. 2
      libs/ui/src/lib/top-holdings/top-holdings.component.html

10
apps/client/src/app/components/admin-users/admin-users.html

@ -19,12 +19,16 @@
<div class="align-items-center d-flex text-nowrap"> <div class="align-items-center d-flex text-nowrap">
<span <span
class="d-none d-sm-inline-block font-monospace" class="d-none d-sm-inline-block font-monospace"
[class.text-line-through]="element.role === 'INACTIVE'" [class.text-decoration-line-through]="
element.role === 'INACTIVE'
"
>{{ element.id }}</span >{{ element.id }}</span
> >
<span <span
class="d-inline-block d-sm-none font-monospace" class="d-inline-block d-sm-none font-monospace"
[class.text-line-through]="element.role === 'INACTIVE'" [class.text-decoration-line-through]="
element.role === 'INACTIVE'
"
>{{ `${(element.id | slice: 0 : 5)}...` }}</span >{{ `${(element.id | slice: 0 : 5)}...` }}</span
> >
@if (element.subscription?.expiresAt) { @if (element.subscription?.expiresAt) {
@ -200,7 +204,7 @@
[title]="translate(element.lastRequestClient)" [title]="translate(element.lastRequestClient)"
/> />
} @else { } @else {
<ion-icon class="hidden me-1" /> <ion-icon class="invisible me-1" />
} }
{{ {{
formatRelativeTime({ formatRelativeTime({

2
apps/client/src/app/components/subscription-interstitial-dialog/subscription-interstitial-dialog.html

@ -166,7 +166,7 @@
<div class="flex-grow-1 pt-0" mat-dialog-content> <div class="flex-grow-1 pt-0" mat-dialog-content>
<div class="align-items-center d-flex h-100 justify-content-center"> <div class="align-items-center d-flex h-100 justify-content-center">
<gf-membership-card <gf-membership-card
class="gf-pointer-events-none" class="pe-none"
[name]="data?.user?.subscription?.type" [name]="data?.user?.subscription?.type"
/> />
</div> </div>

10
apps/client/src/app/pages/pricing/pricing-page.html

@ -88,7 +88,7 @@
<p i18n>Self-hosted, update manually.</p> <p i18n>Self-hosted, update manually.</p>
<p class="h5 text-end" i18n>Free</p> <p class="h5 text-end" i18n>Free</p>
@if (user?.subscription?.type === 'Basic') { @if (user?.subscription?.type === 'Basic') {
<div class="d-none d-lg-block hidden mt-3 text-center"> <div class="d-none d-lg-block invisible mt-3 text-center">
<a color="primary" mat-flat-button>&nbsp;</a> <a color="primary" mat-flat-button>&nbsp;</a>
<p class="m-0 text-muted"> <p class="m-0 text-muted">
<small>&nbsp;</small> <small>&nbsp;</small>
@ -96,7 +96,7 @@
</div> </div>
} }
@if (durationExtension) { @if (durationExtension) {
<div class="d-none d-lg-block hidden mt-3"> <div class="d-none d-lg-block invisible mt-3">
<div class="badge p-3 w-100">&nbsp;</div> <div class="badge p-3 w-100">&nbsp;</div>
</div> </div>
} }
@ -154,7 +154,7 @@
<p i18n>Fully managed Ghostfolio cloud offering.</p> <p i18n>Fully managed Ghostfolio cloud offering.</p>
<p class="h5 text-end" i18n>Free</p> <p class="h5 text-end" i18n>Free</p>
@if (user?.subscription?.type === 'Basic') { @if (user?.subscription?.type === 'Basic') {
<div class="d-none d-lg-block hidden mt-3 text-center"> <div class="d-none d-lg-block invisible mt-3 text-center">
<a color="primary" mat-flat-button>&nbsp;</a> <a color="primary" mat-flat-button>&nbsp;</a>
<p class="m-0 text-muted"> <p class="m-0 text-muted">
<small>&nbsp;</small> <small>&nbsp;</small>
@ -162,7 +162,7 @@
</div> </div>
} }
@if (durationExtension) { @if (durationExtension) {
<div class="d-none d-lg-block hidden mt-3"> <div class="d-none d-lg-block invisible mt-3">
<div class="badge p-3 w-100">&nbsp;</div> <div class="badge p-3 w-100">&nbsp;</div>
</div> </div>
} }
@ -238,7 +238,7 @@
</li> </li>
<li class="align-items-center d-flex line-height-1 mb-1"> <li class="align-items-center d-flex line-height-1 mb-1">
<ion-icon <ion-icon
class="hidden me-1" class="invisible me-1"
name="checkmark-circle-outline" name="checkmark-circle-outline"
/> />
<small <small

12
apps/client/src/styles.scss

@ -349,10 +349,6 @@ ngx-skeleton-loader {
cursor: pointer; cursor: pointer;
} }
.gf-pointer-events-none {
pointer-events: none;
}
.gf-spacer { .gf-spacer {
flex: 1 1 auto; flex: 1 1 auto;
} }
@ -372,10 +368,6 @@ ngx-skeleton-loader {
} }
} }
.hidden {
visibility: hidden;
}
.lead { .lead {
font-weight: unset; font-weight: unset;
} }
@ -511,10 +503,6 @@ ngx-skeleton-loader {
} }
} }
.text-line-through {
text-decoration: line-through;
}
.with-placeholder-as-option { .with-placeholder-as-option {
.mat-mdc-select-placeholder { .mat-mdc-select-placeholder {
color: rgba(var(--dark-primary-text)); color: rgba(var(--dark-primary-text));

2
libs/ui/src/lib/top-holdings/top-holdings.component.html

@ -125,7 +125,7 @@
></tr> ></tr>
<tr <tr
*matFooterRowDef="displayedColumns" *matFooterRowDef="displayedColumns"
class="hidden" class="invisible"
mat-footer-row mat-footer-row
></tr> ></tr>
</table> </table>

Loading…
Cancel
Save