mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Smarter hide by tags
This commit is contained in:
@@ -190,7 +190,7 @@ function onTagFilterClick() {
|
||||
|
||||
function applyFilterToElement(tagId, element) {
|
||||
const isTagged = isElementTagged(element, tagId);
|
||||
$(element).css('display', !isTagged ? 'none' : '');
|
||||
$(element).toggleClass('hiddenByTag', !isTagged);
|
||||
}
|
||||
|
||||
function isElementTagged(element, tagId) {
|
||||
@@ -205,7 +205,7 @@ function isElementTagged(element, tagId) {
|
||||
|
||||
function clearTagsFilter() {
|
||||
$('#rm_tag_filter .tag').removeClass('selected');
|
||||
$('#rm_print_characters_block > div').css('display', '');
|
||||
$('#rm_print_characters_block > div').removeClass('hiddenByTag');
|
||||
}
|
||||
|
||||
function printTags() {
|
||||
|
@@ -3053,6 +3053,10 @@ a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.hiddenByTag {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* Message images */
|
||||
.mes img.img_extra {
|
||||
max-width: 600px;
|
||||
|
Reference in New Issue
Block a user