Skip to content

Commit 2a21ed6

Browse files
committed
fix: img display
1 parent 3abe3e8 commit 2a21ed6

3 files changed

Lines changed: 17 additions & 0 deletions

File tree

epub_browser/assets/book.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ body {
178178
background: var(--notification-warning);
179179
}
180180

181+
.custom-css-notification.error {
182+
background: #f44336;
183+
}
184+
181185
.custom-css-notification.fade-out {
182186
opacity: 0;
183187
transform: translateY(-10px);

epub_browser/assets/chapter.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ body {
301301
display: initial;
302302
}
303303

304+
#eb-content img {
305+
max-width: 100%;
306+
height: auto;
307+
}
308+
304309
/* medium-zoom 样式 */
305310
.medium-zoom-container {
306311
z-index: 9999;
@@ -737,6 +742,10 @@ body {
737742
background: var(--notification-warning);
738743
}
739744

745+
.custom-css-notification.error {
746+
background: #f44336;
747+
}
748+
740749
.custom-css-notification.fade-out {
741750
opacity: 0;
742751
transform: translateY(-10px);

epub_browser/assets/library.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,6 +527,10 @@ body {
527527
background: #f8961e;
528528
}
529529

530+
.custom-css-notification.error {
531+
background: #f44336;
532+
}
533+
530534
.custom-css-notification.fade-out {
531535
opacity: 0;
532536
transform: translateY(-10px);

0 commit comments

Comments
 (0)