Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quarto Website: Prevent margin-sidebar from blocking code copy to clipboard #2388

Closed
dragonstyle opened this issue Sep 9, 2022 Discussed in #2173 · 0 comments
Closed
Assignees
Labels
bug Something isn't working
Milestone

Comments

@dragonstyle
Copy link
Collaborator

Discussed in #2173

Originally posted by nickjhathaway August 28, 2022
When creating a Quarto website project with the code copy to the clipboard turned on I noticed that I couldn't actually get to the copy button and it appears to be an issue with the margin-side bar on the right side. When hovering over the code block the clipboard button appears.

Screen Shot 2022-08-28 at 2 56 53 AM

but as you approach it, it then disappears.
Screen Shot 2022-08-28 at 2 56 57 AM

This seems to happen where the margin-sidebar on the right is.
Screen Shot 2022-08-28 at 2 17 19 AM

When I use the dev tools to delete the sidebar, then I'm able to get over to the copy to clipboard button and I tested this in chrome, firefox, and safari.

Screen Shot 2022-08-28 at 2 18 04 AM

I'm wondering if I'm doing anything wrong with the setup and if there is anything I can do to fix this. I'm not currently using anything in the right margin sidebar and wonder if there's a straightforward way to just delete it on every page by default, I'm not very familiar with quarto yet.

My YAML for the site looks like this

project:
  type: website
  output-dir: SeekDeep
  bibliography: references.bib
  resources: ["images"]
  render: 
    - index.qmd
    ...... 
    ...... 
    ...... 
    ...... 

website:
  title: "SeekDeep"
  navbar:
    left:
      - text: "{{< fa home >}} Home"
        href: index.html
    ...... 
    ...... 
    ...... 
    ...... 

format:
  html:
    toc: true
    toc-depth: 4 
    toc-title: Contents
    toc-location: left 
    anchor-sections: true
    smooth-scroll: true
    self-contained: true
    theme: flatly
    highlight-style: textmate
    code-fold: show
    fig-width: 12
    fig-height: 8
    page-layout: full
    bibliography: references.bib
@dragonstyle dragonstyle added the bug Something isn't working label Sep 9, 2022
@dragonstyle dragonstyle added this to the v1.2 milestone Sep 9, 2022
@dragonstyle dragonstyle self-assigned this Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant