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

"New note" button positioning is wrong if page has no notes #599

Closed
robertknight opened this issue Nov 21, 2017 · 3 comments
Closed

"New note" button positioning is wrong if page has no notes #599

robertknight opened this issue Nov 21, 2017 · 3 comments

Comments

@robertknight
Copy link
Member

The "New note" button positioning is wrong if the page has no notes and so the "blank state" content is being shown:

screenshot 2017-11-21 13 53 18

Client configuration:

window.hypothesisConfig = function () {
    return {
      disableToolbarCloseBtn:false,
      disableToolbarMinimizeBtn: true,
      disableToolbarHighlightsBtn: true,
      disableToolbarNewNoteBtn: true,
      disableBucketBar: true,
      enableSidebarDropShadow: true,
      enableExperimentalNewNoteButton: true,
      enableCleanOnboardingTheme: true,
      theme: 'clean',
      usernameUrl: 'http://www.elife.org/user/',
      branding: {
        // Match the body's background color.
        appBackgroundColor: 'white',

        // Match the header's background and foreground colors.
        accentColor: '#0288d1',
        ctaBackgroundColor: '#0288d1',
        ctaTextColor: 'white',

        // Match the body text of the article.
        annotationFontFamily: 'serif',
        selectionFontFamily: 'serif',
      },
      showHighlights: 'whenSidebarOpen',
    };
  };
@robertknight
Copy link
Member Author

On further testing, this appears to be a Safari-specific issue. In Safari 11.0.1 I reproduced while reviewing #611 as follows:

  1. Visit a page using the new-look "New Note" button, using a user who has not dismissed the sidebar tutorial
  2. Switch to the "Page Notes" tab
  3. Switch back to the "Annotations" tab
  4. Switch back to the "Page Notes" tab

End result:

screenshot 2017-11-30 10 47 40

The button's position appears as expected in Chrome 64 (dev) and Firefox 59 (Nightly).

@seanh
Copy link
Contributor

seanh commented Dec 8, 2017

@robertknight Did this get fixed? I'm not currently seeing it on production eLife

@ajpeddakotla
Copy link

This issue has been fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants