mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Adding gif support (#1225)
* Adding gif to accepted image extension and unit test * Revert "Adding gif to accepted image extension and unit test" This reverts commit d0df8239068ddc12f44aed752804b5db60243e44. * Adding gif support and unit test * unit test and event widget - updating unit test archives to temive unneeded gifs, causing failures - adding overflow to event widget
This commit is contained in:
parent
28e5c70811
commit
70196e6e4c
@ -179,6 +179,7 @@ namespace API.Tests.Parser
|
|||||||
[InlineData(".test.jpg", false)]
|
[InlineData(".test.jpg", false)]
|
||||||
[InlineData("!test.jpg", true)]
|
[InlineData("!test.jpg", true)]
|
||||||
[InlineData("test.webp", true)]
|
[InlineData("test.webp", true)]
|
||||||
|
[InlineData("test.gif", true)]
|
||||||
public void IsImageTest(string filename, bool expected)
|
public void IsImageTest(string filename, bool expected)
|
||||||
{
|
{
|
||||||
Assert.Equal(expected, IsImage(filename));
|
Assert.Equal(expected, IsImage(filename));
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -12,7 +12,7 @@ namespace API.Parser
|
|||||||
public const string DefaultVolume = "0";
|
public const string DefaultVolume = "0";
|
||||||
private static readonly TimeSpan RegexTimeout = TimeSpan.FromMilliseconds(500);
|
private static readonly TimeSpan RegexTimeout = TimeSpan.FromMilliseconds(500);
|
||||||
|
|
||||||
public const string ImageFileExtensions = @"^(\.png|\.jpeg|\.jpg|\.webp)";
|
public const string ImageFileExtensions = @"^(\.png|\.jpeg|\.jpg|\.webp|\.gif)";
|
||||||
public const string ArchiveFileExtensions = @"\.cbz|\.zip|\.rar|\.cbr|\.tar.gz|\.7zip|\.7z|\.cb7|\.cbt";
|
public const string ArchiveFileExtensions = @"\.cbz|\.zip|\.rar|\.cbr|\.tar.gz|\.7zip|\.7z|\.cb7|\.cbt";
|
||||||
public const string BookFileExtensions = @"\.epub|\.pdf";
|
public const string BookFileExtensions = @"\.epub|\.pdf";
|
||||||
public const string MacOsMetadataFileStartsWith = @"._";
|
public const string MacOsMetadataFileStartsWith = @"._";
|
||||||
|
@ -21,6 +21,8 @@
|
|||||||
max-width: 250px;
|
max-width: 250px;
|
||||||
padding: 0px;
|
padding: 0px;
|
||||||
box-shadow: 0px 0px 12px rgb(0 0 0 / 75%);
|
box-shadow: 0px 0px 12px rgb(0 0 0 / 75%);
|
||||||
|
max-height: calc(100vh - 60px);
|
||||||
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.popover {
|
.popover {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user