diff --git a/apps/showcase/assets/menu/menu.json b/apps/showcase/assets/menu/menu.json index 39e081d3e..007937412 100644 --- a/apps/showcase/assets/menu/menu.json +++ b/apps/showcase/assets/menu/menu.json @@ -95,9 +95,15 @@ "name": "Editor", "to": "/editor" }, + { + "name": "IftaLabel", + "to": "/iftalabel", + "badge": "NEW" + }, { "name": "FloatLabel", - "to": "/floatlabel" + "to": "/floatlabel", + "badge": "NEW" }, { "name": "IconField", @@ -433,14 +439,14 @@ "name": "FocusTrap", "to": "/focustrap" }, - { - "name": "Inplace", - "to": "/inplace" - }, { "name": "Fluid", "to": "/fluid" }, + { + "name": "Inplace", + "to": "/inplace" + }, { "name": "MeterGroup", "to": "/metergroup" diff --git a/apps/showcase/assets/styles/layout/_doc.scss b/apps/showcase/assets/styles/layout/_doc.scss index bdd532c67..cad42da70 100644 --- a/apps/showcase/assets/styles/layout/_doc.scss +++ b/apps/showcase/assets/styles/layout/_doc.scss @@ -432,3 +432,43 @@ } } } + +.doc-ptviewerwrapper { + display: flex; + flex-direction: row; + padding: 0 !important; + + .doc-ptviewer { + display: flex; + align-items: center; + justify-content: center; + border-color: var(--border-color); + border-width: 0 1px 0 0; + padding: 1rem; + width: 75%; + } + + .doc-ptoptions { + display: flex; + flex-direction: column; + gap: .5rem; + padding: .5rem; + width: 25%; + max-height: 720px; + overflow-y: auto; + + .doc-ptoption { + display: flex; + flex-direction: column; + padding: .5rem; + + &:hover { + background-color: var(--hover-background); + } + + .doc-ptoption-text:hover { + cursor: default; + } + } + } +} diff --git a/apps/showcase/assets/styles/layout/_responsive.scss b/apps/showcase/assets/styles/layout/_responsive.scss index c63712e8f..6f34ce658 100644 --- a/apps/showcase/assets/styles/layout/_responsive.scss +++ b/apps/showcase/assets/styles/layout/_responsive.scss @@ -13,7 +13,7 @@ } @media screen and (max-width: 1199px) { - .layout-topbar-inner { + .layout-topbar-inner { padding-left: 2rem; padding-right: 2rem; @@ -128,6 +128,20 @@ .DocSearch-Container { position: fixed !important; } + + .doc-ptviewerwrapper { + flex-direction: column; + + .doc-ptviewer { + width: 100%; + border-width: 0 0 1px 0; + } + + .doc-ptoptions { + width: 100%; + padding: 1rem; + } + } } @media screen and (max-width: 575px) { @@ -174,4 +188,4 @@ display: none; } } -} \ No newline at end of file +} diff --git a/apps/showcase/components/doc/DocPTViewer.vue b/apps/showcase/components/doc/DocPTViewer.vue index 71ca2a132..1fa39d55b 100644 --- a/apps/showcase/components/doc/DocPTViewer.vue +++ b/apps/showcase/components/doc/DocPTViewer.vue @@ -1,14 +1,16 @@