Code Monkey home page Code Monkey logo

Comments (9)

diontron avatar diontron commented on May 30, 2024 2

heres a quick fix for anyone with same problem.

first, create a css file in public/css/fix-avatar-mobile.css with this content:

@media (max-width: 992px) {
    .h-header {
        z-index: 20 !important;
    }

    .h-header .dropdown-trigger {
        margin: auto !important;
        width: 2rem !important;
    }
}

then in your app/Providers/NovaServiceProvider.php class, add this Nova::style this to the boot method:

public function boot()
{
    parent::boot();

    Nova::style('fix-avatar-mobile', asset('css/fix-avatar-mobile.css'));
}

then just refresh the page, and the avatar position will be fixed on mobile.

from laravel-nova-theme-responsive.

popularsizzle avatar popularsizzle commented on May 30, 2024 1

I put the following in a custom SCSS file to fix this issue:

#nova {
    .h-header {
        z-index: 20;

        .dropdown-trigger {
            margin-right: 0;
            width: 2.25rem;

            @media all and (min-width: 993px) {
                width: auto;
            }
        }
    }
}

I'll try and extrapolate it out into a PR once I've done some more testing.

from laravel-nova-theme-responsive.

gregoriohc avatar gregoriohc commented on May 30, 2024

Sorry, I don't have an iPhone 11 to test it right now.
If anyone can found a fix, please send a PR.
Thanks!

from laravel-nova-theme-responsive.

cbrinicombe13 avatar cbrinicombe13 commented on May 30, 2024

There is also a cutoff/overlap when used in conjunction with the nova notifications package Nova Notifications
Screenshot 2020-12-23 at 3 59 11 pm

from laravel-nova-theme-responsive.

bilogic avatar bilogic commented on May 30, 2024

@gregoriohc

image

Icon has no margin/padding and touches the window's edge on Chrome Version 96.0.4664.45 (Official Build) (64-bit)

from laravel-nova-theme-responsive.

bilogic avatar bilogic commented on May 30, 2024

@gregoriohc

I found the culprit here

html:not([dir="rtl"]) .h-header .dropdown-trigger {
margin-right: -20px;
}

What's the reason for it?

from laravel-nova-theme-responsive.

diontron avatar diontron commented on May 30, 2024

+1 same issue here

from laravel-nova-theme-responsive.

bilogic avatar bilogic commented on May 30, 2024

@diontron perfect!

from laravel-nova-theme-responsive.

gregoriohc avatar gregoriohc commented on May 30, 2024

Sorry everyone, but unfortunately I don't have time to maintain this package anymore, and with the new Nova 4 release the package is no longer needed,
Feel free to fork it, fix the bug and use it in your projects if you need it.
I have added a deprecation notice to the package's Readme.
Thank you and sorry again.

from laravel-nova-theme-responsive.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.