improve findings

This commit is contained in:
Ross
2025-05-19 11:15:40 +01:00
parent ead5bfcace
commit 503c8f854a
13 changed files with 329 additions and 14 deletions
+4
View File
@@ -307,6 +307,10 @@ ADMINS = [("Ross","ross@xkjq.uk")]
CRISPY_ALLOWED_TEMPLATE_PACKS = ('bootstrap5',)
CRISPY_TEMPLATE_PACK = 'bootstrap5'
CRISPY_CLASS_CONVERTERS = {
"textinput": "clearable_input", # Use clearable_input.html for TextInput
"textarea": "clearable_input", # Use clearable_input.html for Textarea
}
DEBUG_CONTAINER = False
+32
View File
@@ -1356,3 +1356,35 @@ span#user-id {
.remove-button:hover {
opacity: 100%;
}
/* Crispy forms clear button */
.position-relative {
position: relative;
}
/* Style the clear button */
.clear-input-button {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
display: none; /* Hidden by default */
z-index: 1;
opacity: 0.4;
}
.clear-input-button:hover {
opacity: 1;
}
/* Show the clear button only when the input field or textarea is hovered and contains text */
.position-relative:hover .clear-input-button {
display: inline-block;
}
.related-finding-modal {
max-width: 600px;
width: auto;
margin-left: auto;
margin-right: auto;
}