Skip to content

Commit

Permalink
Show headless sidebar in all window sizes (#6605)
Browse files Browse the repository at this point in the history
* Show headless sidebar in all window sizes

* Update headlessdoc.js

---------

Co-authored-by: Melloware <mellowaredev@gmail.com>
  • Loading branch information
ISNewton and melloware authored May 9, 2024
1 parent 9017816 commit 20e007f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/doc/sidebar/headlessdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export function HeadlessDoc(props) {
onHide={() => setVisible(false)}
content={({ closeIconRef, hide }) => (
<div className="min-h-screen flex relative lg:static surface-ground">
<div id="app-sidebar-2" className="surface-section h-screen hidden lg:block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div id="app-sidebar-2" className="surface-section h-screen block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div className="flex flex-column h-full">
<div className="flex align-items-center justify-content-between px-4 pt-3 flex-shrink-0">
<span className="inline-flex align-items-center gap-2">
Expand Down Expand Up @@ -215,7 +215,7 @@ export default function HeadlessDemo() {
onHide={() => setVisible(false)}
content={({ closeIconRef, hide }) => (
<div className="min-h-screen flex relative lg:static surface-ground">
<div id="app-sidebar-2" className="surface-section h-screen hidden lg:block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div id="app-sidebar-2" className="surface-section h-screen block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div className="flex flex-column h-full">
<div className="flex align-items-center justify-content-between px-4 pt-3 flex-shrink-0">
<span className="inline-flex align-items-center gap-2">
Expand Down Expand Up @@ -422,7 +422,7 @@ export default function HeadlessDemo() {
onHide={() => setVisible(false)}
content={({ closeIconRef, hide }) => (
<div className="min-h-screen flex relative lg:static surface-ground">
<div id="app-sidebar-2" className="surface-section h-screen hidden lg:block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div id="app-sidebar-2" className="surface-section h-screen block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div className="flex flex-column h-full">
<div className="flex align-items-center justify-content-between px-4 pt-3 flex-shrink-0">
<span className="inline-flex align-items-center gap-2">
Expand Down Expand Up @@ -622,7 +622,7 @@ export default function HeadlessDemo() {
onHide={() => setVisible(false)}
content={({ closeIconRef, hide }) => (
<div className="min-h-screen flex relative lg:static surface-ground">
<div id="app-sidebar-2" className="surface-section h-screen hidden lg:block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div id="app-sidebar-2" className="surface-section h-screen block flex-shrink-0 absolute lg:static left-0 top-0 z-1 border-right-1 surface-border select-none" style={{ width: '280px' }}>
<div className="flex flex-column h-full">
<div className="flex align-items-center justify-content-between px-4 pt-3 flex-shrink-0">
<span className="inline-flex align-items-center gap-2">
Expand Down

0 comments on commit 20e007f

Please sign in to comment.