Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. Radnor
    MagicMirror² v2.15.0 is available! For more information about this release, check out this topic.
    R
    • Profile
    • Following 0
    • Followers 0
    • Topics 1
    • Posts 15
    • Best 0
    • Groups 0

    Radnor

    @Radnor

    0
    Reputation
    5
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    Radnor Follow

    Latest posts made by Radnor

    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      Thats good. Did not mess that up…

      I did a copy and paste of your code into my config file.

      On the laptop I want the newsfeed. It just says “Loading …” (BEFORE changing width to 801)
      On my phone, I do not want the newsfeed and it is NOT there. So that works great.

      THANK YOU!!!

      Changed width to 801 seems to be working now!
      The short code works not too (without all the comments)

      Thank you again! Be safe!

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      Thank you.

      I’ve had it with and without the ending comma. Your changes, I’ve put in config.js only (node helper???) I did not put it in the modulename.js

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      Event tried:

      if (small_size>width) {
      disabled: true,
      }

      this generates error in config with lots of red text on loading up

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      var small_size = 800;
      var width = 0;
      try {
      width=outerWidth
      }
      catch(error){
      }

      var config = …

      	{
      		module: "newsfeed",
      

      disabled: width < small_size ? true:false,
      position: “bottom_bar”,
      config: {

      I had it WITH and WITHOUT the comma after false. I had parens around the logical test too.

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      Initially, I did NOT see the different variable name.

      Cannot get the Ternary op to work at all. I copy/paste (and change var name) your code without luck.
      A straight “disabled: true” works.

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      There’s 3 (wx forecast) is forecast. Not weather AND forecast.

      No error because in forecast was disabled because of small screen.
      I copied your 2 lines (newsfeed & disabled) and get error when starting it. Complains about my config file…

      Any way of letting it load up and do a display:none in the CSS file for small screen?

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      OK, I think the disabled has something to do with the newsfeed.

      I have several config files. config_WORKING has modules alert, notify, clock, wx, wx forecast, calendar, and newsfeed.

      I have config_CLOCK with modules clock, wx, and wx forecast. In this config I told it via disable: width > small ? false:true. On my laptop get all 3. on phone no forecast (which should not be there).

      In the newsfeed module the disable test is messing it up.

      I rename either WORKING or CLOCK to just config.js to test.

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      I put in config width =801 and reran it. Same “Loading …”
      And commented out try - catch block.

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      @sdetweil said in Is it possible to have CSS for normal screens and a custom CSS for 7in screen?:

      @Radnor said in Is it possible to have CSS for normal screens and a custom CSS for 7in screen?:

      disabled: width > small_size ? false:true,

      because width =0

      Dont think so. I started it up with DEV option. Loaded the config.js file in debugger hovered over the width and it showed 1280. Then hovered over the small_size and it showed 800. Then thought false and true might need double quotes because the rest in config has t/f in double quotes.

      Thank you for sticking with me and getting this working I really appreciate your time. it is SO close.

      posted in Custom CSS
      R
      Radnor
    • RE: Is it possible to have CSS for normal screens and a custom CSS for 7in screen?

      Getting really close!

      My config file is:

      var small_size = 800;
      var width = 0;
      try {
      	width=outerWidth
      }
      catch(error){
      }
      
      SNIP
      
      		{
      			module: "newsfeed",
      			position: "bottom_bar",
      disabled: width > small_size ? false:true,
      			config: {
      SNIP
      

      On phone does not show. On laptop stuck at “Loading…”

      posted in Custom CSS
      R
      Radnor