-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
🚀 - Allow padding to be Zero #623
Comments
Hi, yes this could be helpful 🙂 In my opinion the segmentedControl cannot be used anymore since there is no enough space for five items. Instead, we should use the Select control. Anyway, some info for the pr since navigating into the codebase could be painful: Here’s the configuration file with the padding settings I’d recommend you to refactor the current number[] array to a key-value object with The editor ui for padding is here: FrameStyleForm You can copy a select implementation from this: codeimage/apps/codeimage/src/components/PropertyEditor/EditorStyleForm.tsx Lines 47 to 56 in d3bcdac
codeimage/apps/codeimage/src/components/PropertyEditor/EditorStyleForm.tsx Lines 106 to 120 in d3bcdac
Note: currently the radius between the frame and the editor could be different, then the editor frame border radius must be 0 when frame padding = 0 I think you can update here the “styles.terminalVars.radius” css variable codeimage/apps/codeimage/src/components/Terminal/TerminalHost.tsx Lines 54 to 66 in d3bcdac
|
awesome @riccardoperra thank you for the information, let me work on it. |
Thanks for your collaboration 😃 use the contributions.md to startup the project but if you need something, just ask. if you don’t want to run docker etc because you don’t need the backend for this change, I think you will have to run the build command manually for each package in “packages” folder, except “api-types” (which requires you to have a backend with Postgres up) |
@riccardoperra I have created PR here #625 |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
#625 to be merged |
Released with 1.6.0. Thanks for your contribution :) |
Awesome @riccardoperra Thanks for publishing those changes |
Which @codeimage/* package(s) are relevant/releated to the feature request?
ui
Description
Currently padding options are
16
,32
,64
,128
.It would be great if it allow
0
option also.If you think this is helpful, I can work on creating PR.
The text was updated successfully, but these errors were encountered: