diff --git a/frontend/src/app/main/ui/inspect/styles.cljs b/frontend/src/app/main/ui/inspect/styles.cljs index 96a54a7b47..4e6d10b22c 100644 --- a/frontend/src/app/main/ui/inspect/styles.cljs +++ b/frontend/src/app/main/ui/inspect/styles.cljs @@ -16,6 +16,7 @@ [app.common.types.tokens-lib :as ctob] [app.main.data.style-dictionary :as sd] [app.main.refs :as refs] + [app.main.ui.inspect.annotation :refer [annotation*]] [app.main.ui.inspect.exports :as exports] [app.main.ui.inspect.styles.panels.blur :refer [blur-panel*]] [app.main.ui.inspect.styles.panels.fill :refer [fill-panel*]] @@ -110,6 +111,8 @@ first-component (ctkl/get-component data (:component-id first-shape)) shape-type (get-shape-type shapes first-shape first-component) panels (type->panel-group shape-type) + annotation-content (when (= (count shapes) 1) + (ctkl/get-component-annotation first-shape libraries)) tokens-lib (mf/deref refs/tokens-lib) tokens-status (mf/deref refs/tokens-status) @@ -279,6 +282,9 @@ ;; DEFAULT WIP [:> style-box* {:panel panel} [:div color-space]])])] + (when annotation-content + [:div {:class (stl/css :annotation-wrapper)} + [:> annotation* {:content annotation-content}]]) [:div {:class (stl/css :exports-wrapper)} [:& exports/exports {:shapes shapes diff --git a/frontend/src/app/main/ui/inspect/styles.scss b/frontend/src/app/main/ui/inspect/styles.scss index 865542c3f2..a6818c91f2 100644 --- a/frontend/src/app/main/ui/inspect/styles.scss +++ b/frontend/src/app/main/ui/inspect/styles.scss @@ -14,6 +14,7 @@ block-size: calc(100vh - px2rem(180)); // TODO: Fix this hardcoded value } +.annotation-wrapper, .exports-wrapper { padding-block: var(--sp-s); padding-inline: var(--sp-m);