这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@omentic
Copy link
Contributor

@omentic omentic commented Oct 18, 2024

What does this PR do?

This PR is for minor stylistic changes to the theming of the new favicons system.

Before:
2024-10-18-105031

After:
2024-10-18-104937

Why is this change important?

This change is not important. I am making these changes to my local instance, and thought they looked a lot better, so figured I might as well send them upstream if desired. Feel free to do whatever with it!

Copy link
Member

@return42 return42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I slightly modified the commit message and placed make static.build.commit on top.

It's hard for me to decide whether we should make these changes ... I've also added a few comments below.

Lets hear what others say .. ping: @vojkovic @mrpaulblack @Bnyro

Comment on lines 383 to 384
height: 1.8rem;
width: 1.8rem;
height: 1.25rem;
width: 1.25rem;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like both, but 1.25rem fits the line height much better

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of the favicon is to quickly be able to quickly see what you're clicking on. At 1.25rem it becomes much harder to make out the favicon, and even more so on mobile devices.

An issue is that SearXNG doesn't have website 'short-names'. For example, make a search on Google and you'll see how the short name is above the link which balances out the design.

Obviously, I'm no expert on UX/UI design but I think usability should be prioritised. I would be in favour of maybe lowering the size of the favicons just a little if people want to do that but this is just too much in my opinion.

Copy link

@perennialtech perennialtech Oct 19, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just popping in with my thoughts.

At 1.8rem, the favicons are far too large and distract from reading the names for the search results; they're meant to be auxiliary content, not the main focus.

On the other hand, 1.25rem is a bit small, and could use a slight bump (maybe 1.5rem?)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An issue is that SearXNG doesn't have website 'short-names'. For example, make a search on Google and you'll see how the short name is above the link which balances out the design.

I don't think a "short-name" is needed in SearXNG / most origin search sites (e.g. ddg) do not have a short name we can fetch in our engines.

Here is how it looks on google (incl. "short-name") ..

grafik

and here a screenshot from ddg:

grafik

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Current status (1.25rem width/height, 10% rounding):
2024-10-19-103501

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternatively, there is this (1.5rem width/height, 10% rounding):
2024-10-19-104427

Which one do you all prefer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The purpose of the favicon is to quickly be able to quickly see what you're clicking on. At 1.25rem it becomes much harder to make out the favicon, and even more so on mobile devices.

At 1.8rem, the favicons are far too large .. On the other hand, 1.25rem is a bit small, and could use a slight bump (maybe 1.5rem?)

.. both arguments count, its hard for me to decide for one or the other .. (may we see some day a PR that places the favicon left to the title?) ..

Which one do you all prefer?

I'm not an UI expert to judge, but since I have to make a decision I will choose the compromise, which seems to be 1.5rem .. hope thats OK for all of you.

@return42
Copy link
Member

Here is an example for the <img> background white vs transparent:

before:

grafik

after:

grafik

Copy link
Member

@Bnyro Bnyro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I personally agree with reducing the favicon size since it feels very big, it's even larger than the height of the url.

However, as Markus said, I think we should keep the background.

@omentic omentic changed the title Modify new favicon styling Reduce new favicon size in search results Oct 19, 2024
@return42 return42 merged commit ae496e9 into searxng:master Oct 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants