direflow icon indicating copy to clipboard operation
direflow copied to clipboard

Component styling issue in direflow

Open patrickklze opened this issue 3 years ago • 6 comments

i am trying to run JsonForm(https://jsonforms.io/) in React Direflow and faced an issue where the form is generated properly but somehow the design and user interface is messed up. I have placed the project in a public github repo, here is the link https://github.com/patrickklze/tryingJsonformDireflow.git

The below screenshot is what it supposed to look like. Screenshot 2020-10-21 at 11 10 32 AM

The below screenshot is the messed up ui design it is generating now. Screenshot 2020-10-21 at 11 11 14 AM

patrickklze avatar Oct 21 '20 06:10 patrickklze

Hi @patrickklze Thanks for creating this issue.

It seems like it's the styles from material-ui that are missing. In your public repo, I can see that you're not using the material-ui plugin. Try to use that.

Also, check out these tips on how to work with material-ui in Direflow :blush: https://direflow.io/guides-and-tips#tips-for-material-ui

SimonHoiberg avatar Oct 21 '20 07:10 SimonHoiberg

Hi @Silind,

I have previously tried adding in the plugin too but it didn't work.

import { DireflowComponent } from 'direflow-component';
import App from './App';

export default DireflowComponent.create({
  component: App,
  configuration: {
    tagname: 'testingjsonform-component',
  },
  plugins: [
    {
      name: 'font-loader',
      options: {
        google: {
          families: ['Advent Pro', 'Noto Sans JP'],
        },
      },
    },
    {
      name: 'material-ui'
    },
  ],
});

I have pushed to the repo with the updated plugin and you can see that not only that it didn't work, now the whole background turns white. Screenshot 2020-10-21 at 3 29 44 PM

patrickklze avatar Oct 21 '20 07:10 patrickklze

Hmm alright! Let me take a look, and I'll get back to you here :slightly_smiling_face:

SimonHoiberg avatar Oct 21 '20 07:10 SimonHoiberg

Hi @Silind , I have also found out that not just the ui design having issues. it looks like the dropdown list of this jsonform in direflow has some issues as well

Screenshot 2020-10-22 at 9 21 14 AM

patrickklze avatar Oct 26 '20 01:10 patrickklze

Hi @Silind , Just checking in if you have any advice on the issue i face? I have been trying few methods and also on different other open-source libraries like DHX spreadsheet and gantt chart and i found out that they do have the similar kind of problem where "pop-ups" are not styling properly once put in direflow but working perfectly fine in normal react.

Hope to hear from the team soon as i think this can solve many problems that i am facing. :)

patrickklze avatar Nov 06 '20 06:11 patrickklze

Hmm alright! Let me take a look, and I'll get back to you here 🙂

Hi Team.

Just checking in again if there is any advice on this issue? 🙂

patrickklze avatar Nov 12 '20 07:11 patrickklze