Post by Matte on Mar 30, 2023 19:29:32 GMT -8
A couple weird news feed issues that I think warrant a thread separate from my original thread where I was trying to solve a different news feed issue that I've since abandoned.
Problem 1:
The height of the news feed changes depending on whether the "flip" or "slide" animation is selected, as shown below in the default PB theme with no CSS changes. The same height difference persists regardless of the news item taking up a single line or being long enough to wrap to a second line (makes it seem like a padding or line height issue, one of the two being lesser when using the "slide" animation). Note: The Change Name of "News" plugin is active in these screenshots, but this was tested both with and without the plugin active and results were the same.
"flip" animation on left, "slide" animation on right
Problem 2:
This problem occurs only when using the Change Name of "News" plugin, and only when selecting the "slide" animation. The "flip" animation does not yield this problem. A news item that's long enough to wrap to a second line gets its first line cut off, as if the "slide" animation is ignoring the new width of the news feed title, as shown below. Note: I took this screenshot after applying some CSS changes, but this was tested both before and after doing so and results were the same.
"flip" animation on top, "slide" animation on bottom
Here is my test forum where you can see the problem for yourself: matte.boards.net/ - the "slide" animation is currently active, there is only one news item and you can see the its first line is cut off.
Both of these problems seem to be specific to the "slide" animation. I did find through a little bit of research that the two animations go by different classes, so you have to target certain aspects of them specifically in CSS, but I can't figure out how to tackle these two issues.
I'll also provide my current news bar CSS. I already started from scratch and only changed things that were necessary to give the news bar the look I wanted it to have. I'm not seeing anything that would cause the "slide" animation to have less top and bottom padding/lesser line height than the "flip" animation (problem 1), or anything that would cause the "slide" animation to extend news item text past the boundaries of its container when the "flip" animation keeps those boundaries in check at all times (problem 2).
Problem 1:
The height of the news feed changes depending on whether the "flip" or "slide" animation is selected, as shown below in the default PB theme with no CSS changes. The same height difference persists regardless of the news item taking up a single line or being long enough to wrap to a second line (makes it seem like a padding or line height issue, one of the two being lesser when using the "slide" animation). Note: The Change Name of "News" plugin is active in these screenshots, but this was tested both with and without the plugin active and results were the same.
"flip" animation on left, "slide" animation on right
Problem 2:
This problem occurs only when using the Change Name of "News" plugin, and only when selecting the "slide" animation. The "flip" animation does not yield this problem. A news item that's long enough to wrap to a second line gets its first line cut off, as if the "slide" animation is ignoring the new width of the news feed title, as shown below. Note: I took this screenshot after applying some CSS changes, but this was tested both before and after doing so and results were the same.
"flip" animation on top, "slide" animation on bottom
Here is my test forum where you can see the problem for yourself: matte.boards.net/ - the "slide" animation is currently active, there is only one news item and you can see the its first line is cut off.
Both of these problems seem to be specific to the "slide" animation. I did find through a little bit of research that the two animations go by different classes, so you have to target certain aspects of them specifically in CSS, but I can't figure out how to tackle these two issues.
I'll also provide my current news bar CSS. I already started from scratch and only changed things that were necessary to give the news bar the look I wanted it to have. I'm not seeing anything that would cause the "slide" animation to have less top and bottom padding/lesser line height than the "flip" animation (problem 1), or anything that would cause the "slide" animation to extend news item text past the boundaries of its container when the "flip" animation keeps those boundaries in check at all times (problem 2).
/* News Bar */
#news { color: @nav_tree_color; font: @nav_tree_font; text-decoration: @nav_tree_decoration; z-index: 9; height: 20px; background-color: @nav_tree_background_color; overflow: hidden; margin: 0 auto 10px; border: @nav_tree_border_width @nav_tree_border_style @nav_tree_border_color; .rounded-corners(@nav_tree_border_radius); }
#news .items { height: 20px; position: relative; overflow: hidden; }
#news .items > div > div { font-size: 110%; padding: 0 10px; text-align: justify; line-height: 20px !important; }
#news .items div img { vertical-align: text-bottom; }
#news .items a { font-weight: bold; }
#news .nav { background-color: #3f3f3f; float: left; background-position: center; }
#news .nav > span { width: auto !important; border-width: 0px 0px 0px 0px; border-style: solid; border-color: transparent; cursor: default; float: left; display: inline-block; padding: 0 3px; height: 20px; }
#news .nav > span.title { font-size: 130%; color: #ffffff; text-align: center; display: inline-block; height: 20px; padding: 0px 10px; line-height: 20px !important; }
#news .nav .arrow.left { .rounded-corners(@nav_tree_border_radius, 0, 0, @nav_tree_border_radius); padding-left:15px; }
#news .nav .arrow.right { padding-right:15px; }
#news .nav .arrow.left span { border-right-color: #ffffff; }
#news .nav .arrow.right span { border-left-color: #ffffff; }
#news .nav .arrow.left:hover { border-right: 0px solid #3f3f3f; background-color: #333333; }
#news .nav .arrow.right:hover { border-right: 0px solid #3f3f3f; border-left: 1px solid #3f3f3f; margin-left: -1px; background-color: #333333; }
/* #news .nav:hover { background-color: @nav_tree_hover_background_color; }
#news .nav:hover > span { border: @nav_tree_border_width @nav_tree_border_style @nav_tree_border_color; border-width: 0px @nav_tree_border_width 0px 0px; }
#news .nav:hover .arrow { background-color: @nav_tree_hover_background_color; } */