EivindArvesen / startpage

Custom browser startpage
https://eivindarvesen.github.io/startpage/
MIT License
16 stars 4 forks source link

It's great! Can I add a new category? #1

Open ghost opened 8 years ago

ghost commented 8 years ago

I'm wondering that. I've added these lines but nothing affect.

ekran goruntusu - 2016-04-09 22-38-21

"4": [
        {"category": "Fun"},

        {"title": "YouTube",
        "url": "http://www.youtube.com"},
        {"title": "Netflix",
        "url": "http://www.netflix.com"},
        {"title": "Reddit",
        "url": "http://www.reddit.com"},
        {"title": "Xkcd",
        "url": "http://www.xkcd.com"}
    ],
    "5": [
        {"category": "Test"},

        {"title": "YouTube",
        "url": "http://www.youtube.com"},
        {"title": "Netflix",
        "url": "http://www.netflix.com"},
        {"title": "Reddit",
        "url": "http://www.reddit.com"},
        {"title": "Xkcd",
        "url": "http://www.xkcd.com"}
    ]
EivindArvesen commented 8 years ago

It's been a while since I've worked on the code, but I think you would need to adjust .column in the css, as it's hardcoded to 25%.

If you (in the case of 5 categories) adjust it to e.g. 20%, the new category should be visible - but I don't know how well it would look in the current layout.

ghost commented 8 years ago

ow yeap! You're right but this problem is different. I get it now :) I forgot to add a new column ul. That is the problem!