Add regex toggle for WebUI torrent filtering

PR #20566.
This commit is contained in:
HamletDuFromage
2024-03-24 06:44:57 +01:00
committed by GitHub
parent ce013f132f
commit 5c67c5a77d
6 changed files with 52 additions and 4 deletions

View File

@@ -409,6 +409,37 @@ a.propButton img {
padding: 4px 4px 4px 25px;
}
#torrentsFilterRegexBox {
display: none;
}
#torrentsFilterRegexBox + label {
background-image: url("../images/regex.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 1.5em;
border: 1px solid var(--color-border-default);
border-radius: 4px;
display: inline-block;
height: 26px;
margin-bottom: -9px;
width: 26px;
}
#torrentsFilterRegexBox:checked + label {
background-color: var(--color-background-default);
background-image: url("../images/regex.svg");
background-position: center;
background-repeat: no-repeat;
background-size: 1.5em;
border: 1px solid var(--color-accent-blue);
border-radius: 4px;
display: inline-block;
height: 26px;
margin-bottom: -9px;
width: 26px;
}
#torrentFilesFilterToolbar {
float: right;
margin-right: 30px;