Template talk:Guidecity

From Wikivoyage
Jump to navigation Jump to search

Formatting issue with Guide city template[edit]

Swept in from the pub

I noticed that the article Iqaluit#Go next has a guide city template that does not have the border around it when viewed on a mobile device. Compare that template with the usable city template in Ellesmere Island#Go next. --Comment by Selfie City (talk | contributions) 17:17, 19 May 2020 (UTC)[reply]

What do you see on mobile if you go to Template:Guidecity and Template:Usablecity? What about Template:Stbox? Powers (talk) 18:40, 19 May 2020 (UTC)[reply]
Same on those first two. Could Safari (that’s the web browser I use on mobile) have something to do with it? --Comment by Selfie City (talk | contributions) 21:07, 19 May 2020 (UTC)[reply]
I see the same issue as SelfieCity on the Iqaluit and Ellesmere Island articles (using Firefox on an Android phone). —Granger (talk · contribs) 22:06, 19 May 2020 (UTC)[reply]
I don't have an easy way to test a fix, so I can't make the change myself, but I suspect the problem is related to the first several lines of Template:stbox, where the outline, usable, and star statuses define a specific border style but the guide status does not. If I'm right, the default table style on mobile must be borderless, unlike on desktop. Powers (talk) 17:40, 20 May 2020 (UTC)[reply]
I've tried viewing the template on mobile and desktop and you're right, that's where the problem exists. --Comment by Selfie City (talk | contributions) 17:44, 20 May 2020 (UTC)[reply]
Okay, I've changed Template:Stbox to be explicit about the border style rather than rely on the default CSS definition. Please check to make sure it worked. This does not address the other differences between the default CSS styles on mobile vs desktop, though, such as the color of the border. Powers (talk) 22:48, 22 May 2020 (UTC)[reply]