Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update how to show details in DirTreeViewSortShootingTimeInfoComponent. #564

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,12 @@
Note that folders are sorted by their names since there is no concept of "Shooting Time" of folders.
</div>

<button mat-stroked-button class="details-button" (click)="detailsOpenState.set(!detailsOpenState())">
<button mat-button (click)="detailsOpenState.set(!detailsOpenState())">
<div class="details-button-content">
<span>
@if (detailsOpenState()) {
Hide details for reference
} @else {
Read details for reference
}
</span>
<mat-icon fontIcon="expand_more"
[ngClass]="{'expanded-expand-icon': detailsOpenState()}">
<mat-icon fontIcon="chevron_right"
[ngClass]="{'details-opened-icon': detailsOpenState()}">
</mat-icon>
<span>More details for reference</span>
</div>
</button>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@

.dialog-body {
overflow: auto;
padding: 24px;
padding: 25px 10px;

.message-main {
margin-bottom: 30px;
padding: 0 0 20px 15px;

li {
margin-bottom: 10px;
Expand All @@ -36,27 +36,25 @@
}

.message-details {
margin-top: 20px;
margin-left: 20px;
padding: 5px 20px;
border-left: black 1px solid;

p {
margin: 10px 0;
}
}
}

.details-button {
width: 255px;
}

.details-button-content {
display: flex;
gap: 5px;
align-items: center;
font-weight: normal; // Restore "font-weight: 500" given by mat-button to the browser's default value
}

.expanded-expand-icon {
transform: rotate(180deg);
.details-opened-icon {
transform: rotate(90deg);
}

.dialog-footer {
Expand Down
Loading