kamrify commited on
Commit
fb4f026
·
1 Parent(s): 872c66a

Fix responsiveness

Browse files
docs/src/components/DocsHeader.tsx CHANGED
@@ -12,7 +12,7 @@ export function DocsHeader(props: DocsHeaderProps) {
12
 
13
  return (
14
  <>
15
- <div className="border-b flex items-center justify-between" docs-header>
16
  <div className="text-right flex justify-end py-3 px-6">
17
  <a href="/" className="flex items-center justify-end text-xl font-bold">
18
  <img src="/driver-head.svg" alt="Astro" className="w-10 h-10 mr-2" />
 
12
 
13
  return (
14
  <>
15
+ <div className="border-b flex items-center justify-between">
16
  <div className="text-right flex justify-end py-3 px-6">
17
  <a href="/" className="flex items-center justify-end text-xl font-bold">
18
  <img src="/driver-head.svg" alt="Astro" className="w-10 h-10 mr-2" />
docs/src/components/Sidebar.astro CHANGED
@@ -9,7 +9,7 @@ export interface Props {
9
 
10
  const { activePath, groupedGuides, activeGuideTitle } = Astro.props;
11
  ---
12
- <div class="hidden md:block w-[200px] lg:w-[350px] border-r border-gray-200 text-right min-h-screen flex-shrink-0">
13
  <div class="relative sh:sticky top-0">
14
  <div class="justify-end flex pt-10 pb-5 px-5">
15
  <a href="/" class="block items-center justify-end mb-2">
 
9
 
10
  const { activePath, groupedGuides, activeGuideTitle } = Astro.props;
11
  ---
12
+ <div id="docs-sidebar" class="hidden md:block w-[200px] lg:w-[350px] border-r border-gray-200 text-right min-h-screen flex-shrink-0">
13
  <div class="relative sh:sticky top-0">
14
  <div class="justify-end flex pt-10 pb-5 px-5">
15
  <a href="/" class="block items-center justify-end mb-2">
docs/src/content/guides/animated-tour.mdx CHANGED
@@ -22,7 +22,7 @@ The following example shows how to create a simple tour with a few steps. Click
22
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
23
  { element: '.line:nth-child(17)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
24
  { element: '.line:nth-child(5)', popover: { title: 'Hide Progress', description: 'Progress shown in the bottom left is hidden by default. You can make driver show/hide the progress using this option.', side: "top", align: 'start' }},
25
- { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
26
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
27
  ]}
28
  id={"tour-example"}
 
22
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
23
  { element: '.line:nth-child(17)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
24
  { element: '.line:nth-child(5)', popover: { title: 'Hide Progress', description: 'Progress shown in the bottom left is hidden by default. You can make driver show/hide the progress using this option.', side: "top", align: 'start' }},
25
+ { element: '#docs-sidebar a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
26
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
27
  ]}
28
  id={"tour-example"}
docs/src/content/guides/static-tour.mdx CHANGED
@@ -22,7 +22,7 @@ You can simply set `animate` option to `false` to make the tour static. This wil
22
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
23
  { element: '.line:nth-child(19)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
24
  { element: '.line:nth-child(6)', popover: { title: 'Hide Progress', description: 'Progress shown in the bottom left is hidden by default. You can make driver show/hide the progress using this option.', side: "top", align: 'start' }},
25
- { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
26
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
27
  ]}
28
  id={"tour-example"}
@@ -42,7 +42,7 @@ You can simply set `animate` option to `false` to make the tour static. This wil
42
  { element: 'code .line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
43
  { element: 'code .line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
44
  { element: 'code .line:nth-child(18)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
45
- { element: 'a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
46
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
47
  ]
48
  });
 
22
  { element: '.line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
23
  { element: '.line:nth-child(19)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
24
  { element: '.line:nth-child(6)', popover: { title: 'Hide Progress', description: 'Progress shown in the bottom left is hidden by default. You can make driver show/hide the progress using this option.', side: "top", align: 'start' }},
25
+ { element: '#docs-sidebar a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
26
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
27
  ]}
28
  id={"tour-example"}
 
42
  { element: 'code .line:nth-child(2)', popover: { title: 'Importing CSS', description: 'Import the CSS which gives you the default styling for popover and overlay.', side: "bottom", align: 'start' }},
43
  { element: 'code .line:nth-child(4) span:nth-child(7)', popover: { title: 'Create Driver', description: 'Simply call the driver function to create a driver.js instance', side: "left", align: 'start' }},
44
  { element: 'code .line:nth-child(18)', popover: { title: 'Start Tour', description: 'Call the drive method to start the tour and your tour will be started.', side: "top", align: 'start' }},
45
+ { element: '#docs-sidebar a[href="/docs/configuration"]', popover: { title: 'More Configuration', description: 'Look at this page for all the configuration options you can pass.', side: "right", align: 'start' }},
46
  { popover: { title: 'Happy Coding', description: 'And that is all, go ahead and start adding tours to your applications.' } }
47
  ]
48
  });