diff --git a/netbox_documentation/__init__.py b/netbox_documentation/__init__.py index 497d580..b2576a4 100644 --- a/netbox_documentation/__init__.py +++ b/netbox_documentation/__init__.py @@ -5,7 +5,7 @@ class DocumentationConfig(PluginConfig): name = "netbox_documentation" verbose_name = "NetBox Dokumentation" description = "Wiki und Office-Dokumentation direkt in NetBox" - version = "0.7.1" + version = "0.7.2" author = "LKE" base_url = "documentation" min_version = "4.0.0" diff --git a/netbox_documentation/models.py b/netbox_documentation/models.py index 64bd137..8a42cf9 100644 --- a/netbox_documentation/models.py +++ b/netbox_documentation/models.py @@ -53,7 +53,7 @@ class Document(NetBoxModel): "*": ("class", "style"), } css = CSSSanitizer(allowed_css_properties={ - "background-color", "border", "border-color", "border-style", "border-width", + "background", "background-color", "border", "border-color", "border-style", "border-width", "color", "font-family", "font-size", "font-style", "font-weight", "height", "border-collapse", "line-height", "list-style-type", "margin", "margin-bottom", "margin-left", "margin-right", "margin-top", "padding", "padding-bottom", diff --git a/netbox_documentation/templates/netbox_documentation/document.html b/netbox_documentation/templates/netbox_documentation/document.html index 9842808..46c0c4d 100644 --- a/netbox_documentation/templates/netbox_documentation/document.html +++ b/netbox_documentation/templates/netbox_documentation/document.html @@ -10,7 +10,7 @@ } .documentation-content table { width: auto; - max-width: 100%; + max-width: none; table-layout: auto; border-collapse: collapse; } @@ -18,7 +18,6 @@ .documentation-content td { padding: .45rem; border: 1px solid #adb5bd; - overflow-wrap: anywhere; word-break: normal; vertical-align: top; } diff --git a/pyproject.toml b/pyproject.toml index f4880a0..a5564fe 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "netbox-documentation" -version = "0.7.1" +version = "0.7.2" description = "Integrated Markdown wiki and office document importer for NetBox" readme = "README.md" requires-python = ">=3.10"