Bitcoin Forum
November 01, 2024, 10:11:11 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cap image width  (Read 1360 times)
dree12 (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1077



View Profile
January 23, 2013, 03:30:33 AM
Last edit: February 22, 2013, 04:10:54 AM by dree12
 #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):
dree12 (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1077



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

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

Activity: 1246
Merit: 1077



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: 1078
Merit: 1003



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

I, too, would like to see this implemented.

greyhawk
Hero Member
*****
Offline Offline

Activity: 952
Merit: 1009


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

I concur.
21after2
Member
**
Offline Offline

Activity: 112
Merit: 16



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: 868
Merit: 1000


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: 1918
Merit: 1570


Bitcoin: An Idea Worth Spending


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

I concur.

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

Activity: 756
Merit: 501


There is more to Bitcoin than bitcoins.


View Profile
February 22, 2013, 01:49:16 AM
Last edit: February 22, 2013, 02:51:14 AM by theymos
 #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: 5376
Merit: 13348


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

Done.


I own that coin. Smiley

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
dree12 (OP)
Legendary
*
Offline Offline

Activity: 1246
Merit: 1077



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: 5376
Merit: 13348


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

Fixed.

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

Activity: 840
Merit: 1000



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
Merit: 1036



View Profile WWW
February 24, 2013, 09:19:11 AM
Last edit: February 24, 2013, 09:36:59 AM by deepceleron
 #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
Merit: 1036



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: 5376
Merit: 13348


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

Alright, I fixed that.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Mike Christ
aka snapsunny
Legendary
*
Offline Offline

Activity: 1078
Merit: 1003



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

Works great Grin

2112
Legendary
*
Offline Offline

Activity: 2128
Merit: 1073



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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!