weso / rdfshape-client

Web client for RDFShape API with human-friendly validations and visualizations.
https://rdfshape.weso.es
MIT License
11 stars 5 forks source link

Different font size on Validate Data with ShEx #16

Closed ulitol97 closed 4 years ago

ulitol97 commented 4 years ago

There is a slight difference in the font size of the editors in the ShEx validation section.

Untitled

labra commented 4 years ago

Indeed, I noticed that but I have no idea how to take control on the fonts.

One thing I tried to do is to recover the codemirror instance object that lies behind YaTe and YaShE...

I think it will be possible to assign a specific size to that codeMirror object as described in the codeMirror API documentation.

Another possibility could be to play with the CodeMirror.css file as described here but I am not sure if it will solve it.

I tried to play a little bit with those options without success...if you try, take into account that you may need to call cm.refresh() after a change.

mistermboy commented 4 years ago

I think there is no way to change the font size with the codemirror instance object but you can change it with the css:

<style>
.CodeMirror {
      font-size: 26px !important;
}
</style>
ulitol97 commented 4 years ago

Thanks! I had thought about that... I guess that will do, if there is not a more elegant solution 👍

labra commented 4 years ago

I merged and deployed it to rdfshape.weso.es and it seems to work. 🎉