From d0e00d0549329e8ee8125262c314f97dd60ff93b Mon Sep 17 00:00:00 2001 From: Mike Hingley <99718263+MikeHingley22@users.noreply.github.com> Date: Sat, 9 Jul 2022 02:17:00 +0100 Subject: [PATCH 1/3] Page shows broken link for DocFxTocGenerator. Currently the tooling page has a broken (image) which seems to be a simple mis-naming of the required file --- Documentation/templates-and-plugins/tools-dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/templates-and-plugins/tools-dashboard.yml b/Documentation/templates-and-plugins/tools-dashboard.yml index a79574d61a1..0b297956a99 100644 --- a/Documentation/templates-and-plugins/tools-dashboard.yml +++ b/Documentation/templates-and-plugins/tools-dashboard.yml @@ -8,7 +8,7 @@ items: - name: DocFxTocGenerator description: Generate a Table of Contents (TOC) in YAML format for DocFX. It has features like the ability to configure the order of files and the names of documents and folders. This tool is part of the DocFx Companion Tools set that can be installed using Chocolatey. type: External - thumbnail: ~/templates-and-plugins/images/docfstocgenerator.screenshot.png + thumbnail: ~/templates-and-plugins/images/docfxtocgenerator.screenshot.png homepage: https://github.com/Ellerbach/docfx-companion-tools repository: type: git From fa5332abd52d4f3d663842554b239ebe8e9a115d Mon Sep 17 00:00:00 2001 From: MikeHingley22 Date: Sat, 9 Jul 2022 02:59:13 +0100 Subject: [PATCH 2/3] Fix missing image --- Documentation/templates-and-plugins/tools-dashboard.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/templates-and-plugins/tools-dashboard.yml b/Documentation/templates-and-plugins/tools-dashboard.yml index a79574d61a1..0b297956a99 100644 --- a/Documentation/templates-and-plugins/tools-dashboard.yml +++ b/Documentation/templates-and-plugins/tools-dashboard.yml @@ -8,7 +8,7 @@ items: - name: DocFxTocGenerator description: Generate a Table of Contents (TOC) in YAML format for DocFX. It has features like the ability to configure the order of files and the names of documents and folders. This tool is part of the DocFx Companion Tools set that can be installed using Chocolatey. type: External - thumbnail: ~/templates-and-plugins/images/docfstocgenerator.screenshot.png + thumbnail: ~/templates-and-plugins/images/docfxtocgenerator.screenshot.png homepage: https://github.com/Ellerbach/docfx-companion-tools repository: type: git From e3bc2367bb367e0a2b30883896c23d9c1a650087 Mon Sep 17 00:00:00 2001 From: MikeHingley22 Date: Sat, 9 Jul 2022 03:15:55 +0100 Subject: [PATCH 3/3] Update Dashboard styles to resize images correctly. Now resizes, and centers horizontally. --- Documentation/custom_template/dashboard.html.liquid | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/custom_template/dashboard.html.liquid b/Documentation/custom_template/dashboard.html.liquid index fcc14142871..a188989062e 100644 --- a/Documentation/custom_template/dashboard.html.liquid +++ b/Documentation/custom_template/dashboard.html.liquid @@ -21,6 +21,8 @@ padding: 16px; } .template-screenshot { + display: flex; + justify-content: center; position: relative; margin-bottom: 16px; padding-top: 60%; @@ -29,8 +31,10 @@ .template-screenshot-img { position: absolute; top: 0; - width: 100%; + width: auto; height: auto; + max-height: 100%; + max-width: 100%; } .template-title { font-weight: 600;