Bitcoin Forum
December 11, 2017, 12:06:00 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Cap image width  (Read 1213 times)
dree12
Legendary
*
Offline Offline

Activity: 1246



View Profile
January 23, 2013, 03:30:33 AM
 #1

Add to the stylesheet:

Code:
img {
  max-width: 100%
}

This rescales all images to the maximum width possible without a scrollbar. We all think scrollbars are annoying, but so are downsized images by overzealous posters trying to avoid them. This seems to be a simple solution.

Test below (courtesy niko):
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
1512993960
Hero Member
*
Offline Offline

Posts: 1512993960

View Profile Personal Message (Offline)

Ignore
1512993960
Reply with quote  #2

1512993960
Report to moderator
dree12
Legendary
*
Offline Offline

Activity: 1246



View Profile
January 28, 2013, 04:38:04 AM
 #2

Bump. This would be a trivial and very useful addition at no cost.
dree12
Legendary
*
Offline Offline

Activity: 1246



View Profile
February 21, 2013, 09:11:11 PM
 #3

People have recently expressed concerns with mobile phones. This simple 3-line change would resolve those. I'm not sure why it hasn't been added.
Mike Christ
aka snapsunny
Legendary
*
Offline Offline

Activity: 1092



View Profile
February 21, 2013, 09:55:21 PM
 #4

I, too, would like to see this implemented.

greyhawk
Hero Member
*****
Offline Offline

Activity: 924


View Profile
February 21, 2013, 10:03:01 PM
 #5

I concur.
21after2
Member
**
Offline Offline

Activity: 112



View Profile
February 21, 2013, 10:03:50 PM
 #6

I'm surprised this hasn't already been implemented, or at least responded to. It's a simple, efficient, and quick idea to put in.
repentance
Hero Member
*****
Offline Offline

Activity: 840


View Profile
February 22, 2013, 01:15:49 AM
 #7

Please do this.

All I can say is that this is Bitcoin. I don't believe it until I see six confirmations.
Phinnaeus Gage
Legendary
*
Offline Offline

Activity: 1358


Bitcoin: An Idea Worth Spending


View Profile
February 22, 2013, 01:33:11 AM
 #8

I concur.

Concur, I.
niko
Hero Member
*****
Offline Offline

Activity: 742


There is more to Bitcoin than bitcoins.


View Profile
February 22, 2013, 01:49:16 AM
 #9

Test:



They're there, in their room.
Your mining rig is on fire, yet you're very calm.
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2870


View Profile
February 22, 2013, 02:49:30 AM
 #10

Done.


I own that coin. Smiley

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
dree12
Legendary
*
Offline Offline

Activity: 1246



View Profile
February 22, 2013, 04:07:34 AM
 #11


This doesn't seem to work right now. The class ".headerandpost" should be ".td_headerandpost".
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2870


View Profile
February 22, 2013, 04:28:45 AM
 #12

Fixed.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
dust
Hero Member
*****
Offline Offline

Activity: 840



View Profile WWW
February 24, 2013, 08:20:57 AM
 #13

This isn't working here, where a large image is quoted: https://bitcointalk.org/index.php?topic=146385.msg1554510#msg1554510


However the image in this thread is properly handled when quoted.
Test:




Cryptocoin Mining Info | OTC | PGP | Twitter | freenode: dust-otc | BTC: 1F6fV4U2xnpAuKtmQD6BWpK3EuRosKzF8U
deepceleron
Legendary
*
Offline Offline

Activity: 1512



View Profile WWW
February 24, 2013, 09:19:11 AM
 #14

Fixed.
So this was changed?

https://bitcointalk.org/Themes/custom1/style.css?fin11:
Code:
#bodyarea .windowbg .td_headerandpost img {max-width: 100%}

The preview post feature doesn't show the auto-shrunk version of images though..
Actually the whole thread below where you post a response still has full-size images
                        


So I put something like this:

And now no in-post scroll to make it useful...?
(edit: my post has a scroll bar...Huh)

Another place to fix width is in the "show last posts" per user. One wide post (code or image) and the whole page goes wide:
https://bitcointalk.org/index.php?action=profile;u=63589;sa=showPosts


The mobile phone user would be served by a SMF extension that followed the link and made sure the linked file isn't huge. I could kill a page and blow up your 4G by linking a never-ending php as an image.
deepceleron
Legendary
*
Offline Offline

Activity: 1512



View Profile WWW
February 24, 2013, 09:37:05 AM
 #15

More: To force width it appears that class="post" is what needs a style. It looks like to fix old posts below a reply or "view all posts by" you need to add to  "windowbg", "windowbg2", "windowbg3":

Code:
<tr class="catbg">
<td colspan="2" align="left" class="smalltext">
<div style="float: right;">Posted on: February 21, 2013, 02:03:01 PM</div>
Posted by: greyhawk
</td>
</tr><tr class="windowbg2">
<td colspan="2" class="smalltext" id="msg1547342" width="100%">
<div align="right" class="smalltext"><a href="#top" onclick="return insertQuoteFast(1547342);">Insert Quote</a></div>
<div class="post">I concur.</div>
</td>
theymos
Administrator
Legendary
*
Offline Offline

Activity: 2870


View Profile
February 24, 2013, 04:54:28 PM
 #16

Alright, I fixed that.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Mike Christ
aka snapsunny
Legendary
*
Offline Offline

Activity: 1092



View Profile
February 24, 2013, 08:57:21 PM
 #17

Works great Grin

2112
Legendary
*
Offline Offline

Activity: 1988



View Profile
May 20, 2013, 08:04:06 PM
 #18

Is it difficult to add the same to the stylesheet that governs the "Show the last posts of this person" page? Thanks.

Please comment, critique, criticize or ridicule BIP 2112: https://bitcointalk.org/index.php?topic=54382.0
Long-term mining prognosis: https://bitcointalk.org/index.php?topic=91101.0
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!