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

Little fixes/refactoring #259

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AlperBayraktar
Copy link
Contributor

@AlperBayraktar AlperBayraktar commented Sep 5, 2022

  • Theme toggler in navbar also should be visible while not editing md.
  • Added title to theme toggler.
  • Made navbar image alts' text color white to make them visible.
  • In development, images doesn't load when language is not English. Added a '/' to start of image hrefs to fix that.

Saw this error in dev (editor page, dark mode enabled):

readme so fixed error

Reason: Since there is no window object in server load, theme is 'light' and editor's theme toggle image's alt is light. But when client page loads, window becomes defined so alt is set to 'dark'. So next throws this error because server and client pages are not same.

Fix: Load theme as light in server, and load the actual theme when page loads (when window gets defined).

@vercel
Copy link

vercel bot commented Sep 5, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
readme-so ✅ Ready (Inspect) Visit Preview Sep 5, 2022 at 7:47PM (UTC)

@Anas-Dew
Copy link

Good one

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

Successfully merging this pull request may close these issues.

2 participants