add(css) .image-object max-size (#17)

Co-authored-by: Emmanuel Lepage Vallée <elv1313@gmail.com>
This commit is contained in:
Aire-One 2022-01-03 02:52:23 +01:00 committed by Emmanuel Lepage Vallee
parent e50b41b10d
commit e15205a548
3 changed files with 9 additions and 2 deletions

View File

@ -31,7 +31,9 @@ should be useful for you.
### Default configuration components name:
<center><img src="images/AUTOGEN_awful_popup_defaultconfig.svg"></center>
<center>
<object class="img-object" data="images/AUTOGEN_awful_popup_defaultconfig.svg" alt="" type="image/svg+xml"></object>
</center>
### Guides

View File

@ -650,6 +650,11 @@ pre .url { color: #272fc2; text-decoration: underline; }
margin-top: 15px;
}
.img-object {
max-width: 100%;
padding: 5px;
}
.copy-link {
font-size: 9px;
padding: 2px;

View File

@ -237,7 +237,7 @@ function(run_test test_path namespace escaped_content)
set(OUTPUT_RAW_IMAGE_PATH "${RAW_IMAGE_PATH}.svg")
set(OUTPUT_IMAGE_PATH "${IMAGE_PATH}.svg")
escape_string(
"<object data=\"../images/AUTOGEN${namespace}_${TEST_FILE_NAME}.svg\" alt=\"Usage example\" type=\"image/svg+xml\"></object>\n"
"<object class=\"img-object\" data=\"../images/AUTOGEN${namespace}_${TEST_FILE_NAME}.svg\" alt=\"Usage example\" type=\"image/svg+xml\"></object>\n"
"${TEST_DOC_CONTENT}" TEST_DOC_CONTENT ""
)
else()