Swagger, Tachiyomi, and some new settings (#1331)
* Fixed up swagger generation * Updated Tachiyomi's latest-chapter to hopefully solve some sync issues. * Fixed #1279 with table of contents due to new EPubReader * When errors occur, show the event widget icon in red * Lots of documentation added and tweaked some wording around backups and swagger * For promidius * Return proper ChapterDTO * Hacks for Promidius * Cleanup code * No loose leaf, send max chapter * One more encode change * Implemented code per promiduius' requirements * Fixed a bug in the epub parsing where even if you had a series index and series group, but didn't have the series in the title, Kavita wouldn't group them properly. * Removed some extra comment * Implemented the ability to change a library's type after it's been setup. This displays a warning explaining the dangers of it. * Removed some whitespace * Blur descriptions based on read status for list item view to avoid spoilers * Tweaked placement of a tooltip due to new series detail styles * Hooked up a user preference for bluring unread summaries. Fixed a bug in refresh token where we would cause re-authentication when it shouldn't be needed.
This commit is contained in:
parent
f2c08092b8
commit
2ab0aedd22
36 changed files with 1851 additions and 72 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<div>
|
||||
<span [innerHTML]="currentText | safeHtml"></span>
|
||||
<span [innerHTML]="currentText | safeHtml" [ngClass]="{'blur-text': blur && isCollapsed}"></span>
|
||||
<a [class.hidden]="hideToggle" *ngIf="text && text.length > maxLength" class="read-more-link" (click)="toggleView()">
|
||||
<i aria-hidden="true" class="fa fa-caret-{{isCollapsed ? 'down' : 'up'}}"></i> Read {{isCollapsed ? 'More' : 'Less'}}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,4 @@
|
|||
// .read-more-link {
|
||||
// font-weight: bold;
|
||||
// text-decoration: none;
|
||||
// cursor: pointer;
|
||||
// color: var(--body-text-color) !important;
|
||||
// }
|
||||
.blur-text {
|
||||
color: transparent;
|
||||
text-shadow: 0 0 5px var(--body-text-color);
|
||||
}
|
||||
|
|
@ -9,6 +9,10 @@ export class ReadMoreComponent implements OnChanges {
|
|||
|
||||
@Input() text!: string;
|
||||
@Input() maxLength: number = 250;
|
||||
/**
|
||||
* If the field is collapsed and blur true, text will not be readable
|
||||
*/
|
||||
@Input() blur: boolean = false;
|
||||
currentText!: string;
|
||||
hideToggle: boolean = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue