Skip to content

Commit

Permalink
more responsive design changes; change log added
Browse files Browse the repository at this point in the history
  • Loading branch information
second-slip committed Aug 1, 2024
1 parent d111c17 commit 66a1ec3
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 5 deletions.
18 changes: 17 additions & 1 deletion src/app/ideas/ideas.component.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
.ideas {
margin: 2% 10%;
}
}

table {
font-family: arial, sans-serif;
border-collapse: collapse;
width: 100%;
}

td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}

tr:nth-child(even) {
background-color: #dddddd;
}
22 changes: 21 additions & 1 deletion src/app/ideas/ideas.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,27 @@ <h1 class="centre">Ideas</h1>
</ul>

<p>
Do you have any ideas? I would most welcome your feedback and any ideas for charts.
Do you have any ideas? I would most welcome your feedback and any ideas for charts.
</p>

<section>

<hr class="divider">

<h3>Change log</h3>

<table>
<tr>
<th style="width:85%">Change</th>
<th>Date</th>
</tr>
<tr>
<td>Major change to responsive design: charts better in small screens in portrait screen orientation.
</td>
<td>01/08/2024</td>
</tr>
</table>

</section>

</section>
4 changes: 2 additions & 2 deletions src/app/wkts-match/wkts-match.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ export class WktsMatchComponent {
@ViewChild(BaseChartDirective) chart?: BaseChartDirective;

@HostListener('window:resize', ['$event.target.innerHeight'])
onResize() { //event: any) {
// console.log(event)
onResize(event: any) {
console.log(event)
this.chart?.chart?.resize();
}

Expand Down
2 changes: 1 addition & 1 deletion src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ body {
/* Larger devices (769px and up) */
@media only screen and (min-width: 992px) {
.chart {
max-height: 500px;
max-height: 525px;
width: 100%;
}

Expand Down

0 comments on commit 66a1ec3

Please sign in to comment.