0

About the side-column width adjustment in the fx window

Hi everyone

Any idea to open the width adjustment function for the side-column in the fx window?

Current table fields were fine, but if I try to go deep into a few more layers, I even can not see any table or field name. Obviously, the coding side is able to adjust the window size, but the side-column does not support it. If can not remember the exact field relationship, or wonder to just follow the root to find a field, is really hard to see after two or three layers. Especially when coding, I have to copy and save the clipboard, exit the coding page, find the field name, and come back to continue. That is hard work. Does anyone suffer from that pain or just me? 😅

Hope the Ninox team considering that.

9 replies

null
    • Fred
    • 9 mths ago
    • Reported - view

    i do this all the time with my poor memory.

    • Sean
    • 9 mths ago
    • Reported - view

    Hi,

    It would be similar to this post. You would replace 

    styleSheet.insertRule('.Console_input{resize:vertical}');

    with this

    styleSheet.insertRule('.nx-script-quick-fields{resize:horizontal;}');
      • Roger.1
      • 9 mths ago
      • Reported - view

       

      Thank you for your reply.

      I mean to resize the window where the picture shows, as you can see not able to read the field name.

       

      I read those links, but it looks different. I just lightly use code in the Ninox for work, I don't even know where should I put the code in. That coding is too complicated for me. 😣😅

    • Alan_Cooke
    • 9 mths ago
    • Reported - view

    Oh wow!  Can someone please explain to a rookie how I use this script to adjust that sidebar?  Drives me up the wall.  That is when writing code/scripts for real not the console.

      • Sean
      • 9 mths ago
      • Reported - view

      I will in about an hour 

      • Alan_Cooke
      • 9 mths ago
      • Reported - view

      Thank you - not being able to is such a pain

    • Sean
    • 9 mths ago
    • Reported - view

    The code, which I have modified, goes into Trigger after open under the Options tab when you are in Admin mode. Here is the modified code...

    dialog("Custom CSS", html("
        <script>
            const myCustomCSS = '.nx-script-quick-fields{resize:horizontal;}';
            const sheet = new CSSStyleSheet();
            sheet.replaceSync(myCustomCSS);
            document.adoptedStyleSheets = [sheet];
    
            var interval = setInterval(() => {
                var bt = document.querySelector('.nx-alert .nx-button-text');
                if (bt) {
                    bt.click();
                    clearInterval(interval);
                }
            });
        </script>
    "), ["close"])

    This is very similar to the way Dark Mode and Ninext are initialized. It uses the Ninox dialog() function combined with the html() function which allows you to run JavaScript when you open your database. The changes I made to the code include creating a "constructed stylesheet" instead of using an existing Ninox style sheet and replacing the insertRule method with the replaceSync method. The setInterval() function just closes the dialog automatically. If you want to add your own custom CSS rules just append them to the myCustomCSS string.

    This is a CSS modification and is not the same as the Ninox resizer you can use to change the main sidebar. My internet connection is terrible where I am currently so I can't upload a screenshot. Look for 2 small diagonal lines in the lower right corner of the formula sidebar. Click and drag from there.

      • Alan_Cooke
      • 9 mths ago
      • Reported - view

       Brilliant!  Thanks for this great feature.

      • Roger.1
      • 9 mths ago
      • Reported - view

       Thank you so so so much.

      Brilliant! It works perfectly.

      I can't express my thanks in words. Knees!!👍👍

Content aside

  • Status Answered
  • 9 mths agoLast active
  • 9Replies
  • 77Views
  • 4 Following