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

Text-Icons are too small to read in Binky #26

Open
ConX opened this issue Feb 5, 2022 · 0 comments
Open

Text-Icons are too small to read in Binky #26

ConX opened this issue Feb 5, 2022 · 0 comments
Assignees
Labels

Comments

@ConX
Copy link
Owner

ConX commented Feb 5, 2022

Reported on dokuwiki.org:

Some dokuwiki releases resize icons to 16×16 size. Just comment the width resizing in /lib/scripts/edit.js (around line 40)

...
// create the icon and add it to the button
$ico.attr('src', icon);
//Disable resizing icons
// $ico.attr('width', 16);
$ico.attr('height', 16);
$btn.append($ico);
...

If you use a dokuwiki template (like vector for example) including “user.js” file, copy the function who manages toolbar button from “edit.js” dokuwiki file and disable icon localy in the user.js file. Do not forget to activate the template option “user-script overwrite”.

@ConX ConX added the Bug label Feb 5, 2022
@ConX ConX self-assigned this Feb 5, 2022
Klap-in added a commit to Klap-in/dokuwiki-plugin-custombuttons that referenced this issue Dec 23, 2023
- height of text image generator to 16px makes it a bit sharper
- Fixes ConX#26 by setting width of img to auto to prevent cutting of the
image
- calculating the text width before creating the image to remove the
too wide margins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant