Giter Club home page Giter Club logo

Comments (8)

riccardoperra avatar riccardoperra commented on June 2, 2024 1

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)

from codeimage.

SarjuHansaliya avatar SarjuHansaliya commented on June 2, 2024 1

@riccardoperra I have created PR here #625

from codeimage.

riccardoperra avatar riccardoperra commented on June 2, 2024 1

Released with 1.6.0. Thanks for your contribution :)

from codeimage.

riccardoperra avatar riccardoperra commented on June 2, 2024

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
configuration.ts

I’d recommend you to refactor the current number[] array to a key-value object with label and value property, just like the β€œeditorRadius” config.

The editor ui for padding is here: FrameStyleForm

You can copy a select implementation from this:

const languagesOptions = createSelectOptions(
languages.map(language => ({
label: language.label,
value: language.id,
})),
{
key: 'label',
valueKey: 'value',
},
);

<PanelRow for={'frameLanguageField'} label={t('frame.language')}>
<TwoColumnPanelRow>
<SuspenseEditorItem
fallback={<SkeletonLine width={'100%'} height={'26px'} />}
>
<Select
{...languagesOptions.props()}
{...languagesOptions.controlled(
() => editor().languageId,
language => {
setLanguageId(language!);
getUmami().track('change-language', {
language: language!,
});
},

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

style={assignInlineVars({
[styles.terminalVars.headerBackgroundColor]:
tabTheme()?.background ?? '',
[styles.terminalVars.backgroundColor]: background(),
[styles.terminalVars.textColor]: props.textColor,
[styles.terminalVars.boxShadow]: props.shadow ?? 'unset',
[styles.terminalVars.tabTextColor]: tabTheme()?.textColor ?? '',
[styles.terminalVars.tabAccentActiveBackground]:
tabTheme().activeTabBackground ?? '',
[styles.terminalVars.tabAccentInactiveBackground]:
tabTheme().inactiveTabBackground ?? '',
...(props.style ?? {}),
})}

from codeimage.

SarjuHansaliya avatar SarjuHansaliya commented on June 2, 2024

awesome @riccardoperra thank you for the information, let me work on it.

from codeimage.

stale avatar stale commented on June 2, 2024

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.

from codeimage.

riccardoperra avatar riccardoperra commented on June 2, 2024

#625 to be merged

from codeimage.

SarjuHansaliya avatar SarjuHansaliya commented on June 2, 2024

Awesome @riccardoperra Thanks for publishing those changes

from codeimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.