@dave1904 Iād start by adding a console.log function to hookData so you can see what is being returned
return hookData; console.log(hookData):Whitespace fixes in Nodebb
-
I would like to create my own theme, but dont know where to start really.
In the interim is there CSS that can be added to thin down the whitespace on the header, which takes up half the screen on my mobile.
So here is screenshot of a forum
Although the Title isnt very high there is whitespace below and above it.
And there is even more whitespace before the first category heading.As comparison, there is also a lot of whitespace on sudonix site, but that banner does contain more graphics.
But its similar in taking up >50% screen before posts begin (on mobile).What I would like to achieve is the title remaining as it is, but with less whitespace above and below it?
-
Just as further example, going into a post the whole screen is taken up before the post text shows.
Also @phenomlab are you aware these badges overlap (circled)
-
What screen size are you using, and what device? Iām not seeing that issue on my OnePlus 9 Pro
-
@phenomlab Samsung Flip4
3088 high
x 1440 widePerhaps it is my device then, it has narrower screen in comparison to height
-
-
@Panda With a resolution like that, it shouldnāt be an issue. However, there are a number of things you can do with custom CSS. I wouldnāt recommend creating a new theme unless you really have to
-
@Panda just circling back on this based on your list concerning badges overlapping.
This is what I see on my mobile
-
This is exactly why I never really liked CSS. It can so easily go wrong on different resolution screens!
When I wrote games, I would use Javascript on Canvas, with my own font so that everything was scaled as % of screen width and height.
I had my own library for this. It was the only way to guarantee everything works on all devices.Look at this: its a mess, and Flip4 is not an uncommon device
What does having this extra Tag saying Author really add?
I dont want to be critical, but it might be better to have the user group badges as shorter names, then that would reduce overlaps? -
@Panda it looks to me like youāre using enlarged fonts at least. Can you confirm? You canāt cater for literally every device of course.
-
@phenomlab yes thats a point that font size is an Android system setting, so another variable.
So its not on largest but more than half way up
-
@Panda yes, that will play havoc with rendering. Iām curious to know if setting it to the normal size resolves it.
-
Yes with text 4/8 size its fine.
Athough my suggestion to have shorter group names might be worth taking.
Collaborator is quite a long badge name,
Whats your list of all the group categories? Is Sage top, how did you chose these names? -
@Panda said in Whitespace fixes in Nodebb:
Collaborator is quite a long badge name,
Yes, I need to re-think these names actually.
@Panda said in Whitespace fixes in Nodebb:
Whats your list of all the group categories? Is Sage top, how did you chose these names?
See below
In actual fact, even āSupremeā wonāt be the top rank - at 50,000 upvotes, youād need to be almost god-like
-
@phenomlab
Interesting. Because it is not obvious which name is what rank, I suggest an alphabetical list.
For example, something like
ACE (highest)
COMMANDER
EXPERT
GURU
ROOKIE
STARTER (lowest) -
@Panda I see your point, but I wonāt be changing to an alphabetic system - but would consider stars. I know @crazycells uses ranking like this.
-
@phenomlab yeap, I like the starsā¦ very intuitiveā¦
we have them from 1 to 5, but I am considering extending it to 7. additionally we have small icons such as a youtube sign for users with youtube channels, etc.
in the past , forums used to have military rankingsā¦ captain, major, general etc. that is what the initial recommendation by our users wasā¦ sometimes these ranks would have lines and stars next to itā¦ so the idea in the forum evolved to have only stars as ranksā¦ users are happy with thisā¦
-
@crazycells Youāre both raising really good points here. The wording in all honesty was to get it started, but itās become much more than that - particularly as original members have much higher rankings. Iāll take a look at this over the weekend.
-
@Panda said in Whitespace fixes in Nodebb:
What does having this extra Tag saying Author really add?
Missed this question. This specific tag adds āauthorā to who originally created the topic. Itās a useful way of identifying the original poster throughout a long thread.
-
@Panda Just circling back here with something of an update (which I think youāll like). Iāve completely restructured the ranking system. There are now less ranks, with a higher point threshold to reach them.
More importantly, if you reload the site, youāll notice that the ranks are now icons.
I also removed the āAuthorā badge, and made this a single icon, which (to me) looks much better.
Did this solution help you?
Related Topics
-
-
-
-
-
-
-
NodeBB Footer
Solved Customisation -
NodeBB Discord Plugins
Unsolved Customisation