joelshepherd / tabliss

A beautiful, customisable New Tab page for Firefox, Chrome, and Edge.
https://tabliss.io
GNU General Public License v3.0
2.3k stars 302 forks source link

Github Contributions map is broken #620

Open happinyz opened 1 year ago

happinyz commented 1 year ago

Instead of the calendar, it shows text/data of each day.

image
alifirhas commented 1 year ago

Glad it's not just me

szamanr commented 1 year ago

likely a bug in the library, follow this issue for updates: https://github.com/Bloggify/github-calendar/issues/169

polypoyo commented 1 year ago

Seems to be a CSS issue. Here's a workaround for now:

.sr-only {
    display: none;
}
td.ContributionCalendar-day {
    min-width: 1em;
    min-height: 1em;
}

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);
}

td span {
  position: initial !important;
}
spaceCabbage commented 1 year ago

so im not alone, nice!

spaceCabbage commented 1 year ago

Seems to be a CSS issue. Here's a workaround for now:

.sr-only {
    display: none;
}
td.ContributionCalendar-day {
    min-width: 1em;
    min-height: 1em;
}

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);
}

td span {
  position: initial !important;
}

add a little border-radius: 2px;

the-wright-jamie commented 1 year ago

Seems to be a CSS issue. Here's a workaround for now:

Funnily enough, this seems to fix #579 in a weird sort of way 😛

yeuk0 commented 1 year ago

Seems to be a CSS issue. Here's a workaround for now:

.sr-only {
    display: none;
}
td.ContributionCalendar-day {
    min-width: 1em;
    min-height: 1em;
}

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);
}

td span {
  position: initial !important;
}

I had change this a bit to be more similar to what we had:

.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[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);
}
the-wright-jamie commented 1 year ago

Throwing my hat in the ring - I use my graph top centre, this centres it and adds rounded corners to the boxes:

.GitHub {
    width:100%;
  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);
}

Result: image

benjamin051000 commented 1 year ago

How can I apply these workarounds? Not familiar with web dev.

the-wright-jamie commented 1 year ago

How can I apply these workarounds? Not familiar with web dev.

Settings → add widgit → custom css → paste code into textbox

krystofyah commented 1 year ago

added min-width since the boxes appeared squished in my browser

.GitHub {
    width:100%;
  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;
min-width: 10px;

}

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);
}
Mathews-Tom commented 1 year ago

To all those worked the workaround, thanks a lot. Like magic, everything seems to back to normal. YAAY

Bruncky commented 1 year ago

It still looks weird on my browsers if I remove the custom CSS; just wanted to mention it before someone nukes their custom CSS without copying it first, as I did 🙃

the-wright-jamie commented 1 year ago

It still looks weird on my browsers

Yeah, upstream hasn't fixed yet (repo owner is recovering from a knee injury), and I don't know if a version bump on the packages here will be required - if so we might never see it fixed on Tabliss as the owner has been missing on this repo for over a year.

(I've decided to fork and I'm going to make sure it stays maintained, going to try and build a CI pipeline to automatically publish so that the actual work of maintenance is easier)

TriAttack238 commented 10 months ago

This extension is also weird for me, but in a new way: image

davidbudzynski commented 8 months ago

I have the same issue as above

LarveyOfficial commented 7 months ago

+1

Ethanscharlie commented 1 week ago

+1

Ethanscharlie commented 1 week ago

Css still works