From 1497977f82d396f1dda8120434c6d29f3de683e6 Mon Sep 17 00:00:00 2001 From: Djordy Koert Date: Fri, 14 Feb 2025 13:47:20 +0100 Subject: [PATCH] fix: stoplight ui height (#2444) ## Description Fixes stoplight ui on massive documentation https://docs.stoplight.io/docs/elements/d536b917a4e1d-layout ## What type of PR is this? (check all applicable) - [x] Bug Fix - [ ] Feature - [ ] Refactor - [ ] Deprecation - [ ] Breaking Change - [ ] Documentation Update - [ ] CI ## Checklist - [ ] I have made corresponding changes to the documentation (`docs/`) - [ ] I have made corresponding changes to the changelog (`CHANGELOG.md`) --- templates/Stoplight/index.html.twig | 2 +- tests/Command/DumpCommandTest.php | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/Stoplight/index.html.twig b/templates/Stoplight/index.html.twig index 792115ff2..b74c2324c 100644 --- a/templates/Stoplight/index.html.twig +++ b/templates/Stoplight/index.html.twig @@ -14,7 +14,7 @@ {{ nelmioAsset(assets_mode, 'stoplight/styles.min.css') }} {% endblock stylesheets %} - + {% block swagger_ui %} {% endblock swagger_ui %} diff --git a/tests/Command/DumpCommandTest.php b/tests/Command/DumpCommandTest.php index 25db25139..02a411517 100644 --- a/tests/Command/DumpCommandTest.php +++ b/tests/Command/DumpCommandTest.php @@ -68,7 +68,9 @@ public function testHtml($htmlConfig, string $expectedHtml): void '--format' => 'html', '--html-config' => json_encode($htmlConfig), ]); - self::assertStringContainsString('', $output); + self::assertStringContainsString('', $output); + self::assertStringContainsString('', $output); self::assertStringContainsString($expectedHtml, $output); }