Skip to content

Commit

Permalink
more responsive design changes
Browse files Browse the repository at this point in the history
  • Loading branch information
second-slip committed Aug 1, 2024
1 parent 3ab73d1 commit 959ef47
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
11 changes: 8 additions & 3 deletions src/app/wkts-match/wkts-match.component.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,19 @@ canvas {
box-sizing: initial;
}

.chart-full-screen {
height: 100%;
width: 100%;
}

.chart.full-screen {
.chart-full-screen {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
overflow: auto;
background: lime;
z-index: 25;
background: black;
/* background: lime; */
z-index: 10;
}
9 changes: 8 additions & 1 deletion src/app/wkts-match/wkts-match.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@
<canvas class="chart" baseChart [type]="'bar'" [legend]="true" [datasets]="formatAnalysisData.chartData"
[labels]="formatAnalysisData.chartLabels" [options]="barChartOptions">
</canvas>
<!-- </div> -->

<!-- use a different container -->
<!-- <div class="chart-full-screen full-screen">
<button mat-flat-button (click)="toggleBar()">{{btnText()}}</button>
<canvas baseChart [type]="'bar'" [legend]="true" [datasets]="formatAnalysisData.chartData"
[labels]="formatAnalysisData.chartLabels" [options]="barChartOptions">
</canvas>
</div> -->

<section>
<p class="alert alert-info">
Expand Down
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ body {
}

.chart {
min-width: 500px;
min-width: 450px;
overflow: visible;
}

Expand Down

0 comments on commit 959ef47

Please sign in to comment.