Skip to content

Commit

Permalink
fixed table graphics annoyance in preview
Browse files Browse the repository at this point in the history
  • Loading branch information
cbartondock committed Oct 14, 2024
1 parent 8790add commit d4acfb2
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 30 deletions.
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
"endOfLine": "auto"
}
12 changes: 12 additions & 0 deletions src/renderer/styles/preview.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,12 @@
color: var(--color-preview-text);
border-top: solid 1px var(--color-preview-user-background);
border-bottom: solid 1px var(--color-preview-user-background);
&:first-child {
border-top: solid 2px var(--color-preview-user-background);
}
&:last-child {
border-bottom: solid 2px var(--color-preview-user-background);
}
&.showExcludes {
background-color: var(--color-ng-select-option-background-hover);
color: var(--color-ng-select-option-text-hover);
Expand All @@ -660,6 +666,12 @@
padding-left: 1em;
border-left: solid 1px var(--color-preview-user-background);
border-right: solid 1px var(--color-preview-user-background);
&:first-child {
border-left: solid 2px var(--color-preview-user-background);
}
&:last-child {
border-right: solid 2px var(--color-preview-user-background);
}
span {
display: -webkit-box;
-webkit-line-clamp: 2;
Expand Down
58 changes: 29 additions & 29 deletions src/renderer/templates/preview.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,35 @@ <h1>Add your games to Steam</h1>
</div>
</div>
</div>
<div class="excludesLower" *ngIf="showExcludes">
<div class="title">
<span>Put Back Titles</span>
<div class="button" (click)="putBackSetAll(true)"><span>All</span></div>
<div class="button" (click)="putBackSetAll(false)"><span>None</span></div>
</div>
<div class="currentExcludes">
<ng-container *ngFor="let steamDir of previewData | keys">
<ng-container *ngFor="let steamUser of previewData[steamDir] | keys">
<ng-container
*ngFor="
let currentExclude of previewData[steamDir][steamUser].excluded
"
>
<div
class="currentExclude"
(click)="
excludePutBacks[currentExclude.exceptionKey] =
!excludePutBacks[currentExclude.exceptionKey]
"
[class.isPutBack]="excludePutBacks[currentExclude.exceptionKey]"
>
{{ currentExclude.filePath }}
</div>
</ng-container>
</ng-container>
</ng-container>
</div>
</div>
<div class="upper detailsUpper" *ngIf="showDetails">
<div class="upperTitle">
<span>{{ detailsApp ? niceAppTitle(detailsApp.app) : "" }}</span>
Expand Down Expand Up @@ -343,35 +372,6 @@ <h1>Add your games to Steam</h1>
</div>
</ng-container>
</div>
<div class="excludesLower" *ngIf="showExcludes">
<div class="title">
<span>Put Back Titles</span>
<div class="button" (click)="putBackSetAll(true)"><span>All</span></div>
<div class="button" (click)="putBackSetAll(false)"><span>None</span></div>
</div>
<div class="currentExcludes">
<ng-container *ngFor="let steamDir of previewData | keys">
<ng-container *ngFor="let steamUser of previewData[steamDir] | keys">
<ng-container
*ngFor="
let currentExclude of previewData[steamDir][steamUser].excluded
"
>
<div
class="currentExclude"
(click)="
excludePutBacks[currentExclude.exceptionKey] =
!excludePutBacks[currentExclude.exceptionKey]
"
[class.isPutBack]="excludePutBacks[currentExclude.exceptionKey]"
>
{{ currentExclude.filePath }}
</div>
</ng-container>
</ng-container>
</ng-container>
</div>
</div>
<div class="urls" *ngIf="previewVariables.numberOfQueriedImages">
<div class="stopButton" (click)="stopImageRetrieving()">
{{ lang.stopUrlRetrieving }}
Expand Down

0 comments on commit d4acfb2

Please sign in to comment.