improve findings
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user