From a567910f3bb1e59fe3de8e96a3fef4f9e1a3b2c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Wed, 11 Oct 2023 10:10:42 +0200 Subject: [PATCH] chore(Storybook): Add label to Figma preview window when empty --- storybook/src/Storybook/FigmaPreviewWindow.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/storybook/src/Storybook/FigmaPreviewWindow.qml b/storybook/src/Storybook/FigmaPreviewWindow.qml index c83f6eee44..6c7ce8d197 100644 --- a/storybook/src/Storybook/FigmaPreviewWindow.qml +++ b/storybook/src/Storybook/FigmaPreviewWindow.qml @@ -36,6 +36,16 @@ ApplicationWindow { topSwipeView.incrementCurrentIndex() } } + + Label { + anchors.fill: parent + + horizontalAlignment: Text.AlignHCenter + verticalAlignment: Text.AlignVCenter + + visible: grid.count === 0 + text: "To add a design, put a link to Figma directly in the Storybook's page code as a comment." + } } Item {