Register - Login
Views: 95801927
Main - Memberlist - Active users - Calendar - Wiki - IRC Chat - Online users
Ranks - Rules/FAQ - Stats - Latest Posts - Color Chart - Smilies
11-18-18 08:45:16 PM

Jul - General Chat - Should I make the forum not automatically full-width any more? New poll - New thread - New reply
Pages: 1 2Next newer thread | Next older thread
Should we have a max width for the forums?
That is, if your browser is wide enough, it only displays in the center
Yes
 
40.9%, 9 votes
No
 
22.7%, 5 votes
Don't care
 
36.4%, 8 votes
Multi-voting is disabled. 22 users have voted.

Kawaii-e

Red Koopa
Collecting Dust and Games
Level: 26


Posts: 117/136
EXP: 101760
For next: 515

Since: 08-12-07

From: Rhinefalls

Since last post: 5 days
Last activity: 6 hours

Posted on 09-07-18 07:09:15 AM Link | Quote
I'm not using this forum that often, but I keep my browser windows not maximized because of excess screen with.

Mostly have it between 1148px and 1722px in with.
StapleButter
Member
Level: 42


Posts: 490/505
EXP: 519207
For next: 2155

Since: 02-24-13

From: your dreams

Since last post: 13 days
Last activity: 9 hours

Posted on 09-07-18 07:52:30 AM Link | Quote
re: table stretching


at K64 we apply table-layout:fixed to post tables, that prevents any stretching of either sidebar or post table

there's another rule to force images in posts to a max width of 100%, so they don't cut off or bleed out


of course, when you try that kind of shito with CSS you never know when you'll run into a case where it explodes spectacularly, but so far this trick is working well
Xkeeper

Level: 250


Posts: 23358/24692
EXP: 250155193
For next: 373818

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 12 hours
Last activity: 2 hours

Posted on 09-07-18 02:04:56 PM (last edited by Xkeeper at 09-07-18 02:05:51 PM) Link | Quote
I didn't actually know about table-layout: fixed;. Welp! That sure makes everything a lot easier.


E: This will also probably let me get rid of all the lingering references to images/_.gif...
Xkeeper

Level: 250


Posts: 23358/24692
EXP: 250155193
For next: 373818

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 12 hours
Last activity: 2 hours

Posted on 09-07-18 02:07:11 PM Link | Quote
Now what would be really nice is if there was a way to use CSS to only select images that were enlarged from their native resolution, so I could set the "make these pixelated" option on them and let the usual fuzzy downscaler do its work
BlackRose
Transforming cats into robots since 1989!
Level: 89


Posts: 2390/2391
EXP: 6739818
For next: 176083

Since: 10-13-09

From: The World

Since last post: 19 days
Last activity: 17 days

Posted on 09-10-18 11:09:19 PM (last edited by BlackRose at 09-10-18 11:09:50 PM) Link | Quote
Originally posted by Xkeeper
Now what would be really nice is if there was a way to use CSS to only select images that were enlarged from their native resolution, so I could set the "make these pixelated" option on them and let the usual fuzzy downscaler do its work


Worse comes to worse, you could just implement a CSS class for that and just tell people to use that class for images. Or implement a new shortcode for pixel graphics, like [pixelart url=https://example.com/img.png width=100 height=100].
Xkeeper

Level: 250


Posts: 23358/24692
EXP: 250155193
For next: 373818

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 12 hours
Last activity: 2 hours

Posted on 09-11-18 01:31:00 AM Link | Quote
I should probably also fix the <code> tag to not be a block-level element

Other alternatives:

• Javascript of some kind to scan every image and give it a smoothing class if it's downsized, or perhaps vice-versa
• Implementing a tag like that, or perhaps something like "thumbnail" that creates an automatic link to the full-size image, but includes "max-width: 100%;" to keep it from ruining tables
• Just assigning a class for it, using it on board-generated pixel images, and letting users selectively apply it to their own images like normal HTML

Not really sure which of these would be best; the last two are the more likely candidates.


I'd also like to just add a place to add user CSS in the forum itself that gets added to pages for yourself automatically, because as it is... oof. Some fixes to make the site more usable on mobile would also be good, but a lot of this is really hard, given the way the board works.
RanAS
Member
Level: 40


Posts: 462/498
EXP: 430473
For next: 10836

Since: 10-10-14

From: Brazil

Since last post: 3 days
Last activity: 14 hours

Posted on 09-11-18 07:47:07 AM Link | Quote
Third option sounds easier and more pratical for the time being.

Mozilla's website says that image-rendering: pixelated; should only use nearest-neighbor while scaling up and use the normal blurry scaling otherwise, but the CSS specification doesn't mention anything about it unfortunately. That would take care of the problem quite easily.

Hopefully there'll be something of the sort once image-rendering goes into Recommended status. One can hope.
Xkeeper

Level: 250


Posts: 23358/24692
EXP: 250155193
For next: 373818

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 12 hours
Last activity: 2 hours

Posted on 09-11-18 09:27:37 AM Link | Quote
We're already using that, and (at least in Chrome) the results are definitely that it uses straight nearest-neighbor-style scaling for up and downscaling:


/* Make images upscale crispy */
* {
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: -webkit-optimize-contrast;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode:nearest-neighbor;
}



Narumi

Paratroopa
Level: 19


Posts: 135/156
EXP: 33224
For next: 2553

Since: 02-01-18

Pronouns: they/them
From: In a garbage can

Since last post: 9 days
Last activity: 3 days

Posted on 09-13-18 03:33:29 AM Link | Quote
I was originally going to vote yes, but now, I don't mind either way.
pea

Level: 2


Posts: 3/3
EXP: 42
For next: 4

Since: 09-12-18

Pronouns: she/her

Since last post: 66 days
Last activity: 40 days

Posted on 09-13-18 12:07:06 PM Link | Quote
+1 on it being a setting if possible

also gives you an excuse to move to jsonb (or however you're storing the blobs in whatever database jul is using) sooner, which will remove a lot of the headache of adding new settings for things like this in the future :p
Xkeeper

Level: 250


Posts: 23358/24692
EXP: 250155193
For next: 373818

Since: 07-03-07

Pronouns: they/them, she/her, etc.

Since last post: 12 hours
Last activity: 2 hours

Posted on 09-13-18 01:19:07 PM Link | Quote
It would probably just be a TEXT field (some old-ish version of MySQL), and yeah.
Pages: 1 2Next newer thread | Next older thread
Jul - General Chat - Should I make the forum not automatically full-width any more? New poll - New thread - New reply




Rusted Logic

Acmlmboard - commit 220d144 [2018-11-04]
©2000-2018 Acmlm, Xkeeper, Inuyasha, et al.

36 database queries.
Query execution time: 0.220428 seconds
Script execution time: 0.017678 seconds
Total render time: 0.238106 seconds