The Wayback Machine - https://web.archive.org/web/20220213021415/https://github.com/go-gitea/gitea/pull/16974
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Fomantic's CSS tooltips #16974

Merged
merged 2 commits into from Sep 8, 2021
Merged

Conversation

@silverwind
Copy link
Member

@silverwind silverwind commented Sep 6, 2021

CSS-only tooltips suffer various issues with positioning and there was only one single instance of them in the templates. Replace that instance with a regular popup and exclude these data-tooltip styles from the Fomantic build.

CSS-only tooltips suffer various issues with positioning and there was
only one single instance of them in the templates. Replace that instance
with a regular popup and exclude these `data-tooltip` styles from the
Fomantic build.
6543
6543 approved these changes Sep 6, 2021
@silverwind
Copy link
Member Author

@silverwind silverwind commented Sep 6, 2021

@delvh included the rename poping to popping here in the second commit, I ran:

perl -p -i -e 's#poping#popping#g' templates/**/* web_src/js/index.js

@delvh
Copy link
Contributor

@delvh delvh commented Sep 7, 2021

If we are already at it: Is there a reason why these two are two separate classes?
Because as far as I can see, they could be combined into one style class pop-up.
Then everyone knows without a doubt what they are meant to do.
Doing this makes everything more readable, smaller, and less error-prone in my opinion.
Unless of course that style class is already used somewhere else…
Even though doing this might help reduce bugs in the end as those things are also already intended to popup and we then have a more unified code base…

@silverwind
Copy link
Member Author

@silverwind silverwind commented Sep 7, 2021

I think that class can probably be removed entirely. I'll probably move the renaming commit to another PR as it's not directly related.

@delvh
Copy link
Contributor

@delvh delvh commented Sep 7, 2021

I am fine with both.
I prefer removing it entirely if possible because less code means fewer bugs…

delvh
delvh approved these changes Sep 7, 2021
@silverwind
Copy link
Member Author

@silverwind silverwind commented Sep 7, 2021

Backed out of the renaming change here, will follow up with a separate PR later.

axifive
axifive approved these changes Sep 7, 2021
6543
6543 approved these changes Sep 7, 2021
@tomaswarynyca
Copy link
Contributor

@tomaswarynyca tomaswarynyca commented Sep 8, 2021

🚀

@zeripath zeripath merged commit bc81d12 into go-gitea:main Sep 8, 2021
2 checks passed
@silverwind silverwind deleted the rm-css-tooltip branch Sep 8, 2021
@go-gitea go-gitea locked and limited conversation to collaborators Oct 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants