smerriman Posted July 5, 2022 Report Share Posted July 5, 2022 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). Quote Link to comment Share on other sites More sharing options...
pescetom Posted July 5, 2022 Report Share Posted July 5, 2022 I have the same problem and always have to (enable auto-rotate and) rotate to see the full bidding. This would be a useful fix. Quote Link to comment Share on other sites More sharing options...
smerriman Posted July 5, 2022 Author Report Share Posted July 5, 2022 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. Quote Link to comment Share on other sites More sharing options...
pescetom Posted July 5, 2022 Report Share Posted July 5, 2022 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. Quote Link to comment Share on other sites More sharing options...
Gerardo Posted July 5, 2022 Report Share Posted July 5, 2022 .hv_frame { border: 0; float: left; padding-right: 0.2em; /* Separate diagram from text */ padding-top: 0.4em; /* Separate one diagram from another */ max-width:100%; } Quote Link to comment Share on other sites More sharing options...
smerriman Posted July 5, 2022 Author Report Share Posted July 5, 2022 Hm, looks like it's only being output on desktop. I guess the forum must be using a different theme for mobile and so CSS has to be added to a different place to get it to show up there. Quote Link to comment Share on other sites More sharing options...
Gerardo Posted July 6, 2022 Report Share Posted July 6, 2022 Please recheck. Quote Link to comment Share on other sites More sharing options...
smerriman Posted July 6, 2022 Author Report Share Posted July 6, 2022 Still not seeing any relevant CSS output to mobile user-agents. But it looks like mobile-specific CSS is in https://www.bridgebase.com/forums/public/style_css/css_2/ipb_styles.css, so editing that file should work. Quote Link to comment Share on other sites More sharing options...
Gerardo Posted July 6, 2022 Report Share Posted July 6, 2022 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. Quote Link to comment Share on other sites More sharing options...
smerriman Posted July 6, 2022 Author Report Share Posted July 6, 2022 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). Quote Link to comment Share on other sites More sharing options...
Gerardo Posted July 6, 2022 Report Share Posted July 6, 2022 I see. I need to look at this closer. Quote Link to comment Share on other sites More sharing options...
barmar Posted July 11, 2022 Report Share Posted July 11, 2022 This might have something to do with the different forum "skins" for mobile and desktop. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.