mirror of
https://ghfast.top/https://github.com/discourse/discourse-signatures.git
synced 2026-07-15 11:26:42 +08:00
* FEATURE: Add group, category, and display restrictions for signatures Adds five new site settings to control signature behavior: - signatures_allowed_groups: restrict signatures to specific groups (server-side enforced in both serializers and user update hook) - signatures_show_in_categories: limit signature display to specific categories - signatures_first_post_only: only show signatures on the OP - signatures_max_length: cap advanced mode signature length - signatures_max_image_height: constrain signature image height Also hardens URL validation (HTTP/HTTPS only) and reduces signature_url max_length from 32KB to 2048. All defaults are backward-compatible (empty/false = no change).
31 lines
476 B
SCSS
31 lines
476 B
SCSS
.user-signature img {
|
|
max-width: calc(100% - 5px);
|
|
}
|
|
|
|
.signature-img {
|
|
max-width: calc(100% - 5px);
|
|
}
|
|
|
|
.signature-preferences .d-editor {
|
|
width: 100%;
|
|
|
|
.d-editor-preview-wrapper {
|
|
display: none;
|
|
}
|
|
|
|
.d-editor-textarea-wrapper {
|
|
flex: 1;
|
|
}
|
|
}
|
|
|
|
.signature-char-count {
|
|
display: block;
|
|
margin-top: 0.25em;
|
|
font-size: var(--font-down-1);
|
|
color: var(--primary-medium);
|
|
}
|
|
|
|
.signature-not-allowed {
|
|
color: var(--primary-medium);
|
|
font-style: italic;
|
|
}
|