Skip to content

New message CSS problem

Unsolved Customisation
11 2 4.1k 1
  • wrote on last edited by
    #1


    In the unread messages menu, when a new message is posted and the message “There is a new message. Click here to reload” appears, the “All topics” button is shifted below because there is no more space on the line.

    Is it possible to fix this by modifying for example the location of the button “There is a new message. Click here to reload” ?

    Thanks in advance


  • In the unread messages menu, when a new message is posted and the message “There is a new message. Click here to reload” appears, the “All topics” button is shifted below because there is no more space on the line.

    Is it possible to fix this by modifying for example the location of the button “There is a new message. Click here to reload” ?

    Thanks in advance

    wrote on last edited by
    #2

    @DownPW without checking the css, you could use nodebb-plugin-customize to modify the language used in order to reduce the text. I’ve done this successfully with the subscribe text.

    If you’d prefer a css solution, I’ll provide one.

  • @DownPW without checking the css, you could use nodebb-plugin-customize to modify the language used in order to reduce the text. I’ve done this successfully with the subscribe text.

    If you’d prefer a css solution, I’ll provide one.

    wrote on last edited by
    #3

    @phenomlab

    I prefer yes.
    I don’t like nodebb-plugin-customize

    I have test with position absolute but bof bof

  • @phenomlab

    I prefer yes.
    I don’t like nodebb-plugin-customize

    I have test with position absolute but bof bof

    wrote on last edited by
    #4

    @DownPW ok. Is this from your production site ?

  • wrote on last edited by
    #5

    yep yep mister

  • yep yep mister

    wrote on last edited by
    #6

    @DownPW Haven’t forgotten about this. I’ve created an account on your site so I can test out some code I have in mind.

  • yep yep mister

    wrote on last edited by
    #7

    @DownPW I get this when a new post arrives on your site

    8f4ff7b2-749a-4c0e-bee5-1fd87ba143e4-image.png

    It looks different (not the language used obviously) to the screenshot you posted - can you share a URL where this happens ? Also, what screen estate are you using ?

  • wrote on last edited by
    #8

    Hmm I think because you are in English Language and me French

  • Hmm I think because you are in English Language and me French

    wrote on last edited by
    #9

    @DownPW that’s a good point. However, I dont think that means 4 buttons in French and 3 in English?

  • wrote on last edited by
    #10

    tes. maybe rights pb

  • tes. maybe rights pb

    wrote on last edited by
    #11

    @DownPW hi. Sorry for digging up an old post, but I’m going through items still unresolved and was looking to get an understanding of where you are currently with this?


Related Topics
  • 2 Votes
    1 Posts
    639 Views
    No one has replied
  • Material View Support for Stock NodeBB

    Unsolved Let's Build It material view javascript css
    51
    4
    15 Votes
    51 Posts
    27k Views
    DownPW
    Oh yes, that’s what’s super cool, I learn something every day. Afterwards I start from so low in JS
  • hover link effect

    Solved Customisation css link hover
    18
    1
    6 Votes
    18 Posts
    7k Views
    phenomlab
    @DownPW Looking at the underlying code, class start is being added on hover by jQuery in this function document.querySelectorAll(".button-gradient, .button-transparent").forEach((button) => { const style = getComputedStyle(button); const lines = document.createElement("div"); lines.classList.add("lines"); const groupTop = document.createElement("div"); const groupBottom = document.createElement("div"); const svg = createSVG( button.offsetWidth, button.offsetHeight, parseInt(style.borderRadius, 10) ); groupTop.appendChild(svg); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupTop.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); groupBottom.appendChild(svg.cloneNode(true)); lines.appendChild(groupTop); lines.appendChild(groupBottom); button.appendChild(lines); button.addEventListener("pointerenter", () => { button.classList.add("start"); }); svg.addEventListener("animationend", () => { button.classList.remove("start"); }); }); }) The CSS for start is below .button-gradient.start .lines svg, .button-transparent.start .lines svg { animation: stroke 0.3s linear; } And this is the corresponding keyframe @keyframes stroke { 30%, 55% { opacity: 1; } 100% { stroke-dashoffset: 5; opacity: 0; } } It’s using both CSS and SVG, so might not be a simple affair to replicate without the SVG files.
  • answers appearance css code request

    Solved Customisation css answers
    11
    1
    1 Votes
    11 Posts
    4k Views
    phenomlab
    @DownPW yes, because of the modifications that Sudonix uses, you’ll need to tailor to fit your needs.
  • Blinking text Effect

    Customisation nodebb text effect css
    3
    5 Votes
    3 Posts
    2k Views
    DownPW
    @phenomlab I love it too @phenomlab said in Blinking text Effect: Has that “broken neon light” look that you see in films. It’s exactly that, kind of old neon signs of bar or pubs a bit cyberpunk too
  • [NODEBB] Help for my custom CSS

    Solved Customisation nodebb css bugfix
    258
    49 Votes
    258 Posts
    168k Views
    cagatay
    mark hi, Refused to apply style from ‘https://efelsefe.com/assets/customfonts/FontAwesome-6-Pro/pro/css/v4-font-face.css’ because its MIME type (‘text/plain’) is not a supported stylesheet MIME type, and strict MIME checking is enabled. I keep getting this error.
  • Border Frame WYSIWYG CSS

    Solved Customisation css wysiwyg
    6
    1
    2 Votes
    6 Posts
    2k Views
    phenomlab
    @DownPW just circling back to this, as I did eventually find the class. Seems you can disable the outline using the below CSS textarea { outline: none; }
  • CSS Help on my Flarum

    Solved Customisation
    5
    2
    2 Votes
    5 Posts
    3k Views
    phenomlab
    @mike-jones Yes, you’ll typically see this type of behaviour if there is another style that has higher priority in the sense that yours will be overridden. Using !important will override the higher preference, but should be used sparingly rather than everywhere.