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

Fix: Github map not displaing properly when username is entered #703

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

Conversation

jishant-AKA-jk
Copy link

Hi there,
When GitHub username is entered , page doesn't show GitHub calendar however other details appeared .
githubBug

changing classname somehow fixed the issue , here's fixed scs.
afterFix

please review/comment if needed.

suggestion:
We,can also achieve this with react-github-calender with more flexibility on configuration & UI of calendar.

@MrPiggy105
Copy link

A temporary fix while we wait for this is with the custom CSS below:

.GitHub {
  display: flex;
  justify-content: center;
}
.sr-only {
    display: none;
}

td:first-child {
    display: none;
}

div.js-calendar-graph div:last-child {
    display: none;
}

table.ContributionCalendar-grid thead {
    display: none;
}

td.ContributionCalendar-day {
    border-radius: 3px;
}

td.ContributionCalendar-day[data-level='0'] {
    background-color: var(--color-calendar-graph-day-bg);
}

td.ContributionCalendar-day[data-level='1'] {
    background-color: var(--color-calendar-graph-day-L1-bg);
}

td.ContributionCalendar-day[data-level='2'] {
    background-color: var(--color-calendar-graph-day-L2-bg);
}

td.ContributionCalendar-day[data-level='3'] {
    background-color: var(--color-calendar-graph-day-L3-bg);
}

td.ContributionCalendar-day[data-level='4'] {
    background-color: var(--color-calendar-graph-day-L4-bg);
}

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