updated shared screen styling
This commit is contained in:
parent
242200d2e5
commit
813d8056a1
@ -23,10 +23,11 @@ div[style*="background-color: black"] .custom-cell {
|
|||||||
.middle-section-container {
|
.middle-section-container {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 1rem;
|
gap: 1rem;
|
||||||
height: 38vh;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
/* height is now controlled dynamically via [ngStyle] */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Desktop view (default) */
|
/* Desktop view (default) */
|
||||||
.main-table {
|
.main-table {
|
||||||
width: 60%;
|
width: 60%;
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<!-- Responsive Container -->
|
<!-- Responsive Container -->
|
||||||
<div class="middle-section-container">
|
<div class="middle-section-container" [ngStyle]="{ height: containerHeight }">
|
||||||
|
|
||||||
<!-- Transaction Summary -->
|
<!-- Transaction Summary -->
|
||||||
<div class="transaction-summary">
|
<div class="transaction-summary">
|
||||||
<div
|
<div
|
||||||
@ -33,7 +34,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Main Table -->
|
<!-- Main Table -->
|
||||||
<div class="main-table">
|
<div class="main-table ">
|
||||||
<div
|
<div
|
||||||
class="p-2 rounded h-100 d-flex flex-column justify-content-between"
|
class="p-2 rounded h-100 d-flex flex-column justify-content-between"
|
||||||
style="background-color: #f1f1f1df"
|
style="background-color: #f1f1f1df"
|
||||||
|
|||||||
@ -1,15 +1,32 @@
|
|||||||
import { Component } from '@angular/core';
|
// import { Component } from '@angular/core';
|
||||||
import { CommonModule } from '@angular/common'; // ✅ Import this
|
// import { CommonModule } from '@angular/common'; // ✅ Import this
|
||||||
|
|
||||||
|
// @Component({
|
||||||
|
// selector: 'app-middle-section',
|
||||||
|
// standalone: true,
|
||||||
|
// imports: [CommonModule], // ✅ Add CommonModule here
|
||||||
|
// templateUrl: './middle-section.component.html',
|
||||||
|
// styleUrls: ['./middle-section.component.css']
|
||||||
|
// })
|
||||||
|
// export class MiddleSectionComponent {
|
||||||
|
// rows = Array.from({ length: 5 });
|
||||||
|
// summaryRows = Array.from({ length: 4 }); // 4 empty rows for now
|
||||||
|
|
||||||
|
// }
|
||||||
|
|
||||||
|
import { Component, Input } from '@angular/core';
|
||||||
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-middle-section',
|
selector: 'app-middle-section',
|
||||||
standalone: true,
|
standalone: true,
|
||||||
imports: [CommonModule], // ✅ Add CommonModule here
|
imports: [CommonModule],
|
||||||
templateUrl: './middle-section.component.html',
|
templateUrl: './middle-section.component.html',
|
||||||
styleUrls: ['./middle-section.component.css']
|
styleUrls: ['./middle-section.component.css']
|
||||||
})
|
})
|
||||||
export class MiddleSectionComponent {
|
export class MiddleSectionComponent {
|
||||||
|
@Input() containerHeight: string = '50vh'; // default for home screen
|
||||||
|
|
||||||
rows = Array.from({ length: 5 });
|
rows = Array.from({ length: 5 });
|
||||||
summaryRows = Array.from({ length: 4 }); // 4 empty rows for now
|
summaryRows = Array.from({ length: 4 }); // 4 empty rows for now
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<div class="flex-grow-1 p-3">
|
<div class="flex-grow-1 p-3">
|
||||||
<app-middle-section></app-middle-section>
|
<app-middle-section [containerHeight]="'38vh'"></app-middle-section>
|
||||||
|
|
||||||
<!-- Tablet View Touchpad -->
|
<!-- Tablet View Touchpad -->
|
||||||
<div *ngIf="isTabletView" class="mt-3">
|
<div *ngIf="isTabletView" class="mt-3">
|
||||||
|
|||||||
@ -19,7 +19,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Scan Enable/Disable Toggle Button -->
|
<!-- Scan Enable/Disable Toggle Button -->
|
||||||
<button
|
<!-- <button
|
||||||
type="button"
|
type="button"
|
||||||
class="scan-toggle-btn"
|
class="scan-toggle-btn"
|
||||||
(click)="toggleScan()"
|
(click)="toggleScan()"
|
||||||
@ -27,7 +27,7 @@
|
|||||||
style="margin-bottom: 10px"
|
style="margin-bottom: 10px"
|
||||||
>
|
>
|
||||||
Scanner: {{ scanningEnabled ? "ON" : "OFF" }}
|
Scanner: {{ scanningEnabled ? "ON" : "OFF" }}
|
||||||
</button>
|
</button> -->
|
||||||
<!-- End Scan Toggle Button -->
|
<!-- End Scan Toggle Button -->
|
||||||
|
|
||||||
<!-- Login Form -->
|
<!-- Login Form -->
|
||||||
|
|||||||
BIN
btc-UI/src/assets/horse_cropped.jpg
Normal file
BIN
btc-UI/src/assets/horse_cropped.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 373 KiB |
Loading…
Reference in New Issue
Block a user