AndyB Well-known member Licensed customer Apr 6, 2018 #2 Add this to your extra.less template: CSS: .bbCodeBlock--expandable .bbCodeBlock-expandContent { max-height: 100%; } Upvote 0 Downvote
Add this to your extra.less template: CSS: .bbCodeBlock--expandable .bbCodeBlock-expandContent { max-height: 100%; }
hibiskus Active member Licensed customer May 5, 2019 #3 @AndyB, You are the best! How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses? Upvote 0 Downvote
@AndyB, You are the best! How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses?
hibiskus Active member Licensed customer May 14, 2019 #4 hibiskus said: ... How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses? Click to expand... Any one any idea? Upvote 0 Downvote
hibiskus said: ... How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses? Click to expand... Any one any idea?
F Feanor Active member Licensed customer Aug 29, 2020 #5 hibiskus said: @AndyB, You are the best! How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses? Click to expand... You could do something like this: Edit the template bb_code_tag_quote Replace this line: Code: <blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote"> with: Code: <blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}"> add to extra.less: CSS: .bbCodeBlock--expandFull .bbCodeBlock-expandContent { max-height: 100%; } When you quote, simply add an attribute called expand to the BBCode. [QUOTE="hibiskus, post: 1347561, member: 192033"] becomes [QUOTE="hibiskus, post: 1347561, member: 192033, expand:full"] Last edited: Aug 29, 2020 Upvote 0 Downvote
hibiskus said: @AndyB, You are the best! How can I make a 2nd separate BBCode one is standard quote which collapses and the 2nd is a quote which doesn't collapses? Click to expand... You could do something like this: Edit the template bb_code_tag_quote Replace this line: Code: <blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote"> with: Code: <blockquote class="bbCodeBlock bbCodeBlock--expandable bbCodeBlock--quote {{ $attributes.expand ? 'bbCodeBlock--expandFull' : '' }}"> add to extra.less: CSS: .bbCodeBlock--expandFull .bbCodeBlock-expandContent { max-height: 100%; } When you quote, simply add an attribute called expand to the BBCode. [QUOTE="hibiskus, post: 1347561, member: 192033"] becomes [QUOTE="hibiskus, post: 1347561, member: 192033, expand:full"]
D djbaxter in memoriam 1947-2022 Licensed customer Aug 29, 2020 #6 AndyB said: Add this to your extra.less template: CSS: .bbCodeBlock--expandable .bbCodeBlock-expandContent { max-height: 100%; } Click to expand... That no longer works in more recent versions of XF. Instead, in ACP search for Maximum expandable BB code block height and change the setting to a high number like 9999px. Last edited: Aug 29, 2020 Upvote 0 Downvote
AndyB said: Add this to your extra.less template: CSS: .bbCodeBlock--expandable .bbCodeBlock-expandContent { max-height: 100%; } Click to expand... That no longer works in more recent versions of XF. Instead, in ACP search for Maximum expandable BB code block height and change the setting to a high number like 9999px.
F Feanor Active member Licensed customer Aug 29, 2020 #7 djbaxter said: That no longer works in more recent versions of XF. Instead, in ACP search for Maximum expandable BB code block height and change the setting to a high number like 9999px. Click to expand... It's working for me in 2.1. Does it not work in 2.2? Edit: except that when you preview quotes in a new thread this will only work if you include !important in the CSS Upvote 0 Downvote
djbaxter said: That no longer works in more recent versions of XF. Instead, in ACP search for Maximum expandable BB code block height and change the setting to a high number like 9999px. Click to expand... It's working for me in 2.1. Does it not work in 2.2? Edit: except that when you preview quotes in a new thread this will only work if you include !important in the CSS
D djbaxter in memoriam 1947-2022 Licensed customer Aug 29, 2020 #8 Feanor said: It's working for me in 2.1. Does it not work in 2.2? Edit: except that when you preview quotes in a new thread this will only work if you include !important in the CSS Click to expand... It hasn't worked for me since 2.0.10. The method I suggested above does work up to the latest 2.1.x version. Update: Turns out the code that no longer worked was not the same as @AndyB's. Last edited: Aug 29, 2020 Upvote 0 Downvote
Feanor said: It's working for me in 2.1. Does it not work in 2.2? Edit: except that when you preview quotes in a new thread this will only work if you include !important in the CSS Click to expand... It hasn't worked for me since 2.0.10. The method I suggested above does work up to the latest 2.1.x version. Update: Turns out the code that no longer worked was not the same as @AndyB's.
AndyB Well-known member Licensed customer Aug 29, 2020 #9 Feanor said: It's working for me in 2.1. Does it not work in 2.2? Click to expand... Yes work fine for me in both XF 2.1 and XF 2.2. Upvote 0 Downvote
Feanor said: It's working for me in 2.1. Does it not work in 2.2? Click to expand... Yes work fine for me in both XF 2.1 and XF 2.2.
D djbaxter in memoriam 1947-2022 Licensed customer Aug 29, 2020 #10 AndyB said: Yes work fine for me in both XF 2.1 and XF 2.2. Click to expand... I just double checked. I was using a slightly different code which used to work but not after 2.1: Code: /* bad code do not use this */ .bbCodeQuote .quoteContainer .quote { max-height: 100% !important; } Upvote 0 Downvote
AndyB said: Yes work fine for me in both XF 2.1 and XF 2.2. Click to expand... I just double checked. I was using a slightly different code which used to work but not after 2.1: Code: /* bad code do not use this */ .bbCodeQuote .quoteContainer .quote { max-height: 100% !important; }