Detecting that ad has failed to load with timeout is not accurate and
won't work on slow connections. This commit fixes that by changing
detection to use 'onerror' event on <script> tag instead, which will be
triggered if ad script fails to load due to blocking.
* Try CarbonAds
* Move location
* add border, fix adblock msg
* Fix advertisement label look (#636)
Ever since changes for Carbon ads were introduced, the label did not
match the appearance of the card, leaving the bottom right corner of the
card not round. With more recent changes, where border was added, that
became even more apparent - now the border covers the label, which does
not look good; this effect only becomes worse when zooming.
This commit attempts to mitigate these issues with the following:
- To fix the border issues, label's absolute position is now calculated
from the card wrapper, where the border is applied. This allows label
to cover the border for seamless look. That is done by changing
position of the card wrapper to relative instead of doing so for the
ad contents container.
- The label now tries to take over the border, to do so the bottom and
right relative positions have been changed to -3px.
- To account for the position change, the label is now a bit more
padded, to make text content of it to look more or less as before,
otherwise it would shift a bit. Not sure if the padding changes are
accurate, but it does look close to how it looked before.
* Fix message again
* Update user ads position
* Remove privacy toggles (placebo and didn't do anything)
* Remove other code
* Link docs page
Co-authored-by: Sasha Sorokin <10401817+Brawaru@users.noreply.github.com>
Fixes#358
Adding project_id to the facets would allow the inclusion or exclusion of individual projects from search. For example, this would allow people to be able to exclude projects which they've already followed or are not interested in. My personal vision for this is to merge the [followed projects page](https://modrinth.com/settings/follows) into search itself.
- Now styled as a proper link.
- Change :focus to :focus-visible to avoid link getting stuck in that
'hovered' state because focus does not actually change (it deffo
should though, something to fix in the future - should be one
fragment change).
- Removed all padding and transition.