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
Add horizontal spacing between the icon and text in the custom icon list #2352
Comments
hi, currently I'm learning how to do first PR for a open resource repo, may I take this issue to work on? |
I'm going to work on this issue, thxx |
@Ashleeey1224 You may refer to this to speed up the developement process of this feature: https://github.com/SPWwj/Spirify-Ui/blob/master/src/components/markdown/ListPlugin.ts |
Hi SPWwj,
Thank you for your support! I really appreciate!
Have a good day.
Cheers,
Ashley Yang
On 18 Oct 2023, at 3:12 pm, SPWwj ***@***.***> wrote:
@Ashleeey1224<https://github.com/Ashleeey1224> You may refer to this to speed up the developement process of this feature:
https://github.com/SPWwj/Spirify-Ui/blob/master/src/components/markdown/ListPlugin.ts
https://github.com/SPWwj/Spirify-Ui/blob/master/src/components/markdown/ListPlugin.scss
—
Reply to this email directly, view it on GitHub<#2352 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AZGC6ED3DUFJYIAPV3IO2PLX75JLJAVCNFSM6AAAAAA3FJD65CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRXGYYDOOJVGU>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Several Questions wanna ask:
Is it appropriate? Thaxx for reply :D |
Hi, I think I figure it out, may I open a PR? |
* Add a new list item attribute called: i-spacing; * It allows user to manually change the spacing between icon and text; * Issue MarkBind#2352
|
If it is okay, may I open a draft pr and get some feedback first? |
Sure, @Ashleeey1224. I haven’t got the chance to understand the context here, but please feel free to raise a PR, will take a look afterwards. |
- Allow users to modify icon's size, width, height, and class for customizing icon attributes while also providing the option to adjust spacing between the icon and text for enhanced user experience. - Added "i-spacing" attribute to ICON_ATTRIBUTES and interface IconAttributes in CustomListIconProcessor.ts. - Implemented logic to check whether the user has defined the i-spacing attribute or not. - Updated createIconSpan function to incorporate i-spacing attribute. - Updated getIconAttributes function to retrieve i-spacing attribute. - This consolidation of attributes maintains code consistency and cleanliness. And it ensures that NodeProcessor.ts can easily access and utilize these attributes without additional complexity. - Refer issue: MarkBind#2352, MarkBind#2316.
- Allow users to modify icon's size, width, height, and class for customizing icon attributes while also providing the option to adjust spacing between the icon and text for enhanced user experience. - Add "i-spacing" attribute to ICON_ATTRIBUTES and interface IconAttributes in CustomListIconProcessor.ts. - Implement logic to check whether the user has defined the i-spacing attribute or not. - Update createIconSpan function to incorporate i-spacing attribute. - Update getIconAttributes function to retrieve i-spacing attribute. - It maintains code consistency and cleanliness. - Refer issue: MarkBind#2352, MarkBind#2316.
… into MarkBind#2352-i-spacing-feature
- Allow users to modify icon's size, width, height, and class for customizing icon attributes while also providing the option to adjust spacing between the icon and text for enhanced user experience. - Add "i-spacing" attribute to ICON_ATTRIBUTES and interface IconAttributes in CustomListIconProcessor.ts. - Implement logic to check whether the user has defined the i-spacing attribute or not. - Update createIconSpan function to incorporate i-spacing attribute. - Update getIconAttributes function to retrieve i-spacing attribute. - This consolidation of attributes maintains code consistency and cleanliness. - Refer issues: MarkBind#2352, MarkBind#2316.
@SPWwj, looking at your referenced PR discussion, it seems like it wasn't simply adding a feature to let users configure the horizontal space, but rather:
Could you help me verify if you recall the discussion? |
@damithc quick question: Per #2316 (comment) |
Hi @tlylt, from @ang-zeyu's feedback, the icon spacing seems a bit too tight for his preference. He suggests implementing an i-spacing configuration for greater flexibility or Would it be better if we have some sample screenshots showing the different icon spacing on different screens? This would help us determine the optimal display. What are your thoughts, @Ashleeey1224 and @tlylt? |
Yes would be nice to see them to compare the approaches. @Ashleeey1224 would you be able to help? |
@tlylt Not specifically, but I'm fine to provide this flexibility to authors. It may be useful in some situations. |
To clarify the concern behind why the PR was closed, it was regarding whether the spacing should be automatic (based on width of the icon) or able to be manually modified (as in the PR). I feel adding the manual modification is okay because it still has a default value, so the work to the average user is minimal - while implementing automatic spacing could lead to some sort of edge case. We could also do changes to this incrementally - merge manual spacing first, and if it makes sense to implement additional automatic spacing, that can be done in another PR afterwards. |
…hleeey1224/MarkBind#2352-i-spacing-feature
…rkBind#2352-i-spacing-feature
Please confirm that you have searched existing issues in the repo
Yes, I have searched the existing issues
Any related issues?
Nil
What is the area that this feature belongs to?
Author Usability, Reader Usability, Syntax
Is your feature request related to a problem? Please describe.
From the PR discussion here:
A feature is needed to let users adjust spacing between customized icons and content, accommodating diverse user preferences.
Describe the solution you'd like
Some ideas:
Introduce an
i-spacing
attribute to customize the spacing between an icon and its associated list content.Example Usage:
Sample output:
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: