Jump to content

Quick fix: forum handviewer on mobile


Recommended Posts

My smartphone has a 412x892 resolution. Due to some margins and padding, this means standard 400x300 handviewer iframes inside forum posts don't fit on the screen; South's bidding is always offscreen and inaccessible.

 

There is some inline CSS on the forum pages:

 

/* CSS: bbo_handviewer*/
.hv_frame {
   border: 0;
   float: left;
   padding-right: 0.2em; /* Separate diagram from text */
   padding-top: 0.4em; /* Separate one diagram from another */
}

Any chance you can add:

.hv_frame iframe {max-width:100%;}

Then on my screen it'll scale down to fit (it'll add whitespace underneath since it has a fixed height rather than scaling responsively, but at least it'll be readable).

Link to comment
Share on other sites

Ooops, my mistake - I see you actually implemented the code already (thanks, super quick :)) but I had a typo - it's just:

 

.hv_frame {max-width:100%;}

since that's the iframe itself.

I hope that works better, because I still lack S bidding on my phone.

Link to comment
Share on other sites

There is only one source for .hv_frame, currently named: https://www.bridgebase.com/forums/public/style_css/css_15/bbo_handviewer.css (name might change in the future).

 

If you are seeing .hv_frame, it is defined here, there is no separate definition for mobile. It might be using a different version of this file though.

 

I just ensured all sources for this file are sync'ed with the max-width content added.

 

If you don't see it in your device, try reloading this file.

 

If still having issues, yell.

Link to comment
Share on other sites

It looks like what's happening is that on desktop, it's embedding all the stylesheets stored in the css_15 folder, while on mobile, it ignores all of these and embeds all the stylesheets from the css_2 folder instead.

 

So copying bbo_handviewer.css into the css_2 folder instead should work (but the float + padding aren't needed in the copy as they need to be in separate columns anyway).

 

My original message about seeing hv_iframe was me looking at the source on desktop; I didn't realise at that point it was different on mobile (where no hv_iframe is showing at all).

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...