Jump to content

Quote Padding Weird

wall03
Go to solution Solved by colonel_mortis,

This should be fixed for quotes in the next update (old spoilers are similarly affected but cannot be fixed in the same way unfortunately).

Browser, version and OS: Windows 20H2, Firefox 82.0.3

 

Steps to reproduce/what were you doing before it happened?

Go to old thread, look at old quotes.

 

What happened?

see photos

 

What did you expect to happen?

something like this:

image.thumb.png.8d8b8426eb638f7a53f95aa10c102b09.png

 

Link to a page where it happened, if applicable: 

All the old threads... IDK exactly what time but what I see is 2013 threads...

 

Screenshots of the issue, if applicable: 

image.thumb.png.871b510646c4db3fef06d7282757846c.png

 

 

Any other relevant details:

I started noticing this after forum update

please quote me or tag me @wall03 so i can see your response

motherboard buying guide      psu buying guide      pc building guide     privacy guide

ltt meme thread

folding at home stats

 

pc:

 

RAM: 16GB DDR4-3200 CL-16

CPU: AMD Ryzen 5 3600 @ 3.6GHz

SSD: 256GB SP

GPU: Radeon RX 570 8GB OC

OS: Windows 10

Status: Main PC

Cinebench R23 score: 9097 (multi) 1236 (single)

 

don't some things look better when they are lowercase?

-wall03

 

hello dark mode users

goodbye light mode users

Link to comment
Share on other sites

Link to post
Share on other sites

If it's helpful in any way to the forum maintainers. It seems the old quotes are missing "div.ipsQuote_contents" so it doesn't get styled correctly.

 

Seems applying the margin size to the quote container and then overriding it in the citation section to maintain style fixes it.

 

    .ipsQuote > div {
        margin: var(--sp-4);
    }
    .ipsQuote_citation {
        margin: 0 !important;
        padding: var(--sp-3) var(--sp-4);
    }

 

For reference.

Current:

Spoiler


<blockquote class="ipsQuote" data-ipsquote="" data-ipsquote-contentapp="forums" data-ipsquote-contentclass="forums_Topic" data-ipsquote-contentcommentid="14209857" data-ipsquote-contentid="1268880" data-ipsquote-contenttype="forums" data-ipsquote-timestamp="1605316201" data-ipsquote-userid="727140" data-ipsquote-username="HelpfulTechWizard" id="ips_uid_5275_4">
    <div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote">&nbsp;</a> <a class="ipsPos_right" href="//linustechtips.com/?app=core&amp;module=system&amp;controller=content&amp;do=find&amp;content_class=forums_Topic&amp;content_id=1268880&amp;content_commentid=14209857"><i class="fa fa-share" data-ipstooltip="" title="Jump to this post"></i></a> 10 hours ago, <a href="//linustechtips.com/?app=core&amp;module=members&amp;controller=profile&amp;id=727140" data-ipshover="" data-ipshover-target="//linustechtips.com/?app=core&amp;module=members&amp;controller=profile&amp;id=727140&amp;do=hovercard">HelpfulTechWizard</a> said: </div>

    <div class="ipsQuote_contents ipsClearfix" data-ipstruncate="true" data-ipstruncate-type="hide" data-ipstruncate-size="7 lines" data-ipstruncate-expandtext="Expand">
        <p>
            that was just a guestimation. Probably "There are over 20.000 items marked rtx 3070 on ebay" would be better.
        </p>

        <p>
            &nbsp;
        </p>
    </div>
</blockquote>

 

Old:

Spoiler


<blockquote data-ipsquote="" class="ipsQuote" data-ipsquote-username="skitz9417" data-cite="skitz9417" data-ipsquote-contentapp="forums" data-ipsquote-contenttype="forums" data-ipsquote-contentid="286" data-ipsquote-contentclass="forums_Topic" id="ips_uid_7268_2">
    <div class="ipsQuote_citation ipsQuote_open"> <a href="#" data-action="toggleQuote">&nbsp;</a> skitz9417 said: </div>
    <div>"I want Metro 2033</div>
</blockquote>

 

 

Before and after workaround.

Spoiler

 

Before

 

before.thumb.jpg.208e27a6c75270f742247b0acee33288.jpg

 

After

 

after.thumb.jpg.f645ae92d384337b1f9a6d14114dc8bf.jpg

 

Edited by Nayr438
Link to comment
Share on other sites

Link to post
Share on other sites

This should be fixed for quotes in the next update (old spoilers are similarly affected but cannot be fixed in the same way unfortunately).

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

3 hours ago, colonel_mortis said:

old spoilers are similarly affected but cannot be fixed in the same way unfortunately.

What about

 

    .ipsStyle_spoiler > p:first-of-type {
        margin-top: var(--sp-4);
    }
    .ipsStyle_spoiler > p {
        margin-left: var(--sp-4);
        margin-right: var(--sp-4);
    }
    .ipsStyle_spoiler > p:nth-last-child(2) {
        margin-bottom: var(--sp-4);
    }  
    .ipsStyle_spoiler > blockquote {
        margin: var(--sp-4);
    }

 

Spoiler

 

Before

 

spoiler_2_before.thumb.jpg.2aa077de64eef92565db22ce0c62b358.jpg

 

 

After

 

spoiler_2_new.thumb.jpg.08908ec249eebd0c7118d1e21ac7c0a0.jpg

 

 

 

Edited by Nayr438
fix margins when blockquote is in a old spoiler
Link to comment
Share on other sites

Link to post
Share on other sites

On 11/14/2020 at 5:18 PM, Nayr438 said:

What about

 


    .ipsStyle_spoiler > p:first-of-type {
        margin-top: var(--sp-4);
    }
    .ipsStyle_spoiler > p {
        margin-left: var(--sp-4);
        margin-right: var(--sp-4);
    }
    .ipsStyle_spoiler > p:nth-last-child(2) {
        margin-bottom: var(--sp-4);
    }  
    .ipsStyle_spoiler > blockquote {
        margin: var(--sp-4);
    }

 

  Hide contents

 

Before

 

spoiler_2_before.thumb.jpg.2aa077de64eef92565db22ce0c62b358.jpg

 

 

After

 

spoiler_2_new.thumb.jpg.08908ec249eebd0c7118d1e21ac7c0a0.jpg

 

 

 

That example is slightly too specific, but I've used a similar approach now.

HTTP/2 203

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×