Skip to content

Commit

Permalink
fix(docs): bring back NcAppSidebar in docs
Browse files Browse the repository at this point in the history
Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
  • Loading branch information
raimund-schluessler committed Jan 29, 2024
1 parent 58c6481 commit fe0519a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/NcContent/NcContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ It also will set the skip content buttons needed for accessibility.
<h2>Your main app content here</h2>
<NcButton @click="opened = !opened">Toggle sidebar</NcButton>
</NcAppContent>
<!-- Todo: Bring back once migrated
<NcAppSidebar v-if="opened" name="cat-picture.jpg" @close="opened=false"></NcAppSidebar>
-->
<NcAppSidebar v-if="opened" name="cat-picture.jpg" @close="opened=false">
Sidebar content
</NcAppSidebar>
</NcContent>
</template>
<script>
Expand All @@ -68,6 +68,13 @@ It also will set the skip content buttons needed for accessibility.
}
}
</script>
<style>
#content-vue {
position: relative;
width: 800px;
height: 400px;
}
</style>
```

</docs>
Expand Down Expand Up @@ -100,7 +107,6 @@ It also will set the skip content buttons needed for accessibility.
:svg="currentImage"
size="auto" />
</div>
&nbsp;<!-- TODO: Remove with vue3! This is a bug of vue-simple-portal that does not allow a single child, ref LinusBorg/vue-simple-portal#20 -->
</Teleport>
<slot />
</div>
Expand Down

0 comments on commit fe0519a

Please sign in to comment.