siliconsara: (Default)
Sara Anne ([personal profile] siliconsara) wrote in [community profile] style_system2013-04-24 09:01 pm

Planet Caravan Style Bug?

I know it might be waaay too early to start knocking on Planet Caravan since the code roll out hasn't been publicly announced yet, but I thought I'd nip this problem quickly so other users can enjoy this beautiful theme without that *one* problem that irks them.

There's a styling bug when it comes to turning off comments for a journal entry.

When comments are enabled in any way we get this nice entry management link bar at the bottom of every entry on the single/permalink page:

 photo good_zpsa24419da.jpg

But when I disable comments for an entry, I get this:

 photo bad_zps8f766fa5.jpg

The link bar styling is gone because it seems the management links just tag along with the styling of the interaction links. I've tried styling them on their own but they ride off the link bar onto their own disheveled bar.

Can this be fixed with CSS? Or a theme layer until this is fixed in the source code?

BTW, I am using Firefox 20.0.1...

Thank you for your time.



momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 05:25 am (UTC)(link)
Okay, I'm poking at it and I can't seem to replicate the behavior you're getting. Mostly because your screenshot has no permalink text for some reason, which should still appear even with comments disabled. Do you have a live page somewhere I could look at?

EDIT: Nevermind, I figured it out! I was looking at the wrong page *g*
Edited 2013-04-25 05:42 (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 05:52 am (UTC)(link)
I realized after much headscratching that you meant individual entry pages, rather than the whole 'recent entries' page XD Clearly I'm not doing fantastic at reading comprehension tonight. But I've got a fix ready, so hopefully I can get Fu to push it live later

EDIT: And Mark has just pushed it live! Let me know if it's working as intended now.
Edited 2013-04-25 05:58 (UTC)
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 06:07 am (UTC)(link)

It's only 11 here, and I had the day off, so I have no real excuse.

And no problem - thank you for reporting it!

momijizukamori: Grey tabby cat with paws on keyboard and mouse. The text reads 'code cat is on the job', lolcats-style (CODE CAT)

[personal profile] momijizukamori 2013-04-25 06:33 am (UTC)(link)
Unfortunately the way the 'opposite sides of the footer' links are done, it's nearly impossible to get them to line up perfectly - the fix that works in your browser/OS actually makes them too high in mine (though I'm looking at with a different font). I'll ask around and see if it's a problem for a lot of people and then see if we need another codepush. Otherwise I'd say stick with the override that works for your font!
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 06:40 am (UTC)(link)
That would be Tabula Rasa being meddlesome, which I can fix easily enough.

(blah blah conflicting alignment blah inheritence is a pain blah)
onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-25 08:15 pm (UTC)(link)
So I was browsing around here, 'cause I'm sick of staring at my own code for the moment, and I was wondering if this got fixed?

I don't know if you feel like manipulating the print_entry and print_comment functions in Planet Caravan, but putting links on the opposite side of the footer and making the freakin' things line up perfectly is relatively simple if you're willing to hurl both of the UL's into a wrapper. There's a liiiiiitttle offset when you've got images for the one side/text for the other, but it still eliminates some of the weird positioning muckery you have to do otherwise.

Then again, if not many people are having problems with the alignment, or noticing it, it might not be worth the effort…?
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 08:30 pm (UTC)(link)
Yeah, that's kind of the trade-off - I can make it ABSOLUTELY PERFECT in S2, but it's a bunch more work, and then if we make changes to any of those functions in core2, anything that overrides them has to be fixed seperately.

I think I managed to find an offset that looks near-perfect, though, so it should be a bit better than the screenshot there once the last push goes through (hopefully soonish).

(The other way, instead of adding a new wrapper, is to take print_tags out of the footer and put it up with metadata, which is what I did for Tectonic. Then you can do styling on .footer and do whatever you want with the ULs)
Edited 2013-04-25 20:32 (UTC)
onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-25 08:39 pm (UTC)(link)
Yep, exactly! ;D Nudging print_tags up is what I ended up doing for the layout I'm working on. It bugged me to have to putz around with the functions for precisely the reason you just gave, but ... alas.

I just did a quick preview of Planet Caravan -- I'm not sure what they looked like before, but you've got them lining up pretty gosh darn perfect now, at least on my end.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 08:46 pm (UTC)(link)
I just got Mark to push the fix for the left-right alignment and the vertical alignment live! So yeah, it should be better now.

And yeah, that's one of two spots that I wish we could... idk have two different versions of in core2. The other is where the userpic prints, because sometimes it's useful to have it up in the entry header wrappers.
onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-25 08:58 pm (UTC)(link)
Agreed! That's precisely the other location where I had to tinker with print_entry. It'd be really nice if the location of both could even be ... some kind of hidden property not normally displayed in the front end UI, but still something layout/theme designers could get to if they needed to. Like, sans functions putzing about. set section_userpic_position = "header"; or somesuch.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 09:01 pm (UTC)(link)

Hmmm hmmmm. I will talk with Fu if I catch her on IRC later tonight about the feasability of that. I know a few people (including myself) who really like tags to be styled as part of metadata, visually, so I think there's reasonable desire for it - I just don't know if adding it would gum up other things back-end.

onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-25 09:09 pm (UTC)(link)
Nice! I'd love to see something like this implemented, especially since on the surface it's the same sort of concept as moving the mood/listening/location metadata around. Otoh, no idea about the back end.
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-25 09:23 pm (UTC)(link)

I know core2 a little bit and I can't think of any problems it would cause, but Fu is The Expert (being the person who wrote it and all), so I'll defer to her judgment. But it'd certainly give designers some more flexibility without having to write overrides

onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-25 10:29 pm (UTC)(link)
Well, it can absolutely be done, because I just bashed out a terribly messy proof of concept based on the way the metadata gets flopped around. Whether the whole notion is something that'd be feasible on a full, deployment level scale though...that's one for people who aren't epic code-manglers like me to say. XD

Looking forward to hearing what Fu tells you!
onlyembers: Credit to <user name="mortgraphics" site="livejournal.com"> (Default)

[personal profile] onlyembers 2013-04-26 11:45 am (UTC)(link)
*CLAPS*

Exciting, omg! Please let me know if I can be of any help with this!
momijizukamori: Green icon with white text - 'I do believe in phosphorylation! I do!' with a string of DNA basepairs on the bottom (Default)

[personal profile] momijizukamori 2013-04-26 07:11 pm (UTC)(link)
I think I have a pretty good idea of implementation, but I will let you know!