Navigation

    MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    Alert box location

    Troubleshooting
    4
    7
    2538
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • PointPubMedia
      PointPubMedia last edited by

      Hey guys…

      Anyone manage to get the alert box location to be center/center instead of center/top ?

      bhepler 1 Reply Last reply Reply Quote 0
      • bhepler
        bhepler Project Sponsor @PointPubMedia last edited by

        @PointPubMedia Just in case, the name of the position value is “middle_center”. Not “center_center”. Are you getting any errors when you change the position?

        PointPubMedia 1 Reply Last reply Reply Quote 0
        • PointPubMedia
          PointPubMedia @bhepler last edited by

          @bhepler I tried… but looks like the position value have no effect on the alert module…

          1 Reply Last reply Reply Quote 0
          • MichMich
            MichMich Admin last edited by

            the alert module is a bit of an odd one. It has a specific config option for the position:

            modules: [
                ...
                {
                    module: 'alert',
                    config: {
                        position: "right"
                    }
                }
            ]
            

            But this will only allow you to change it from center to left or right.

            For more info, check: https://github.com/MichMich/MagicMirror/tree/master/modules/default/alert

            PointPubMedia 1 Reply Last reply Reply Quote 0
            • PointPubMedia
              PointPubMedia @MichMich last edited by

              @MichMich yeah already saw that… but I would like to display it on the center of the height too!

              My MM is a 42" monitor in portrait… so having the alert at the top is not very usefull!

              Any way the module alert can have another option to put it center/center instead of top/left,right,center ?

              1 Reply Last reply Reply Quote 0
              • yawns
                yawns Moderator last edited by

                I just did a quick test on my laptop.
                Edit ~/MagicMirror/css/custom.css and add the following:

                .ns-box {
                top: 50%;
                }
                

                This should move the alert box to the vertical center. You can use the config position @MichMich mentioned to move to the horizontal center.

                PointPubMedia 1 Reply Last reply Reply Quote 1
                • PointPubMedia
                  PointPubMedia @yawns last edited by

                  @yawns AWESOME 😉

                  thanks!

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy