Code Monkey home page Code Monkey logo

laravel-nova-theme-responsive's Introduction

Deprecation notice

New Nova 4 release is fully responsive (https://nova.laravel.com/docs/4.0/releases.html#responsive-design), so this package is no longer needed and it will not be updated anymore.

Thanks to everybody for the support during this years and I hope the package was useful to many people.

If you are using and old (<= 3) version of Nova, you still can use this package, but there will be no more releases or bug fixes.

Laravel Nova Responsive Theme

Latest Version on Packagist Total Downloads

A simple Laravel Nova theme that add responsiveness to the site.

It can be used as is, or as a base theme to your own ones.

Installation

You can install the nova theme into a Laravel app that uses Nova via composer:

composer require gregoriohc/laravel-nova-theme-responsive

This theme include some config based options. To use them, first publish the config file:

php artisan vendor:publish --provider="Gregoriohc\LaravelNovaThemeResponsive\ThemeServiceProvider"

And then you can configure the options editing the config/nova-theme-responsive.php file.

Screenshots

Dashboard Menu Index
nova-responsive-dashboard-view nova-responsive-index-menu-view nova-responsive-index-view
Detail Create Delete
nova-responsive-detail-view nova-responsive-create-view nova-responsive-delete-view

Credits

Support the development

Do you like this project? Support it by donating

License

The MIT License (MIT). Please see License File for more information.

laravel-nova-theme-responsive's People

Contributors

gregoriohc avatar pzmarzly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-nova-theme-responsive's Issues

Problem with filter

Hello Gregorio and thanks for your package.
I noticed that there is a problem when displaying the filters on view page of nova resource.
Can you help me to solve it?

Thank you
marco
novafilter

Modal z-index

The modal's (and the dropdown menu's) z-index needs some fix.
image

Hide columns on mobile

Not saying this is an elegant solution, but below 500px I've opted to hide all but the first two and last columns on my index view:

    td:not(:last-of-type):not(:first-of-type):not(:nth-of-type(2)):not(:nth-of-type(3)) {
        display: none;
    }

    th:not(:last-of-type):not(:first-of-type):not(:nth-of-type(2)):not(:nth-of-type(3)) {
        display: none;
    }

Ultimately, it'd be nice to just specify a priority of fields in my Nova resource so that the columns gracefully collapse upon screen shrinkage... I'll work on that one if I have time.

Not sure if anyone is interested in this solution, but though I'd at least share it in case.

Problem with Tabs

There is a little problem with Nova Responsive theme when working alongside with Tabs package, if there are HasMany or BelongsToMany relationships. The single item view is not responsive and the create/attach button does not go to the new line, stretching the container and ruining everything...

enhancement

Hi,
what do you think if your package provider collapsable side barre in desktop view
Many thx !!

Stack form labels / elements

Even with text wrapping, form fields tend to collide with form labels on a mobile viewport. Rather than align them side-by-side, having the label stacked vertically above each form input would be more useable.

Global search is too small

Removing the site name and user's name will make global search usable

The user knows their name & the app name is in the url

So I think it's safe to hide this text for a better experience

Fixed Original
option-1 option-2

Many filters are displayed incorrectly

When you have more than 3 filters approximately, the upper one appears cut and the main scroll bar must be dragged down, so that it is displayed correctly

On load page:
imagen

on scroll down main bar just a little,
imagen

Modal width and content cut-off

The modal form width is set statically, needs width: 100% to not clip the content within.
This might be fixed in an official release from what I've seen in laravel/nova-issues
Otherwise documenting it here

Fixed Original
option-1 option-2

problem with RTL

I have issue when using with nova-rtl-theme:

in mobile view (RTL only), when clicking on the profile dropdown I get blank page because of the huge transfrom transform: translate3d(-3535px, 53px, 0px); in the dropdown popup:

<div id="popover_iqs6hnofpb" aria-hidden="false" tabindex="0" class="z-50 open" style="visibility: visible; position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(-3535px, 53px, 0px);" x-placement="bottom-start"><div class=""><div class="" style="position: relative;"><div><div class="select-none overflow-hidden bg-white border border-60 shadow rounded-lg" direction="ltr" style="width: 200px;">
/** .... ***/
</div></div> <div data-v-b329ee4c="" tabindex="-1" class="resize-observer"><object aria-hidden="true" tabindex="-1" type="text/html" data="about:blank" __idm_frm__="344"></object></div></div> <div class="" style="left: 0px;"></div></div></div>

I am not sure which package is causing the issue. or maybe nova is causing the issue!

Please make attach button responsive too.

I like how you make create button being responsive:
image

It would be great if we have similiar behavior on attach button. The current state of attach button:
image

Somebody please help submit PR about this.

Logo gone

I was wondering if it is possible to show the logo somewhere, like as a header above the menu? It is a sign of recognition for employees to know they logged in to the correct environment. Kind regards!

Lost theme when changing path...

This might be a nova newbie question. But i'm a little lost.

After installing nova, and later installing laravel-nova-theme-responsive, everything was peachy.

After that, i changed the path in config/nova.php to /admin, ran 'php artisan optimize:clear' and 'php artisan view:clear' - and now the new url /admin works except that the responsive theme is gone, and i'm back to the old theme.

I've tried running npm run prod with no luck.

Any help much appreciated!

Global search results are hidden

bug

The following css is causing the global search results to not appear

.h-header a.no-underline {
    display: none;
}

Replacing it with the following fixes it

span.hamburger-menu + a {
    display: none;
}

Sidebar doesn't scroll

Currently if you scroll the page with sidebar open it shows the end of the sidebar, needs to be fixed

Then if its too long it doesn't scroll, needs to overflow: auto

before

.w-sidebar {
    position: absolute;
    z-index: 1000;
    margin-top: 3.75rem;
}

after

.w-sidebar {
    position: fixed;
    z-index: 1000;
    margin-top: 3.75rem;
    height: 100%;
    overflow: auto;
}

before

Broke pagination?

Hi hi - this broke my pagination. When I hover over the pagination buttons, it displays a no/disabled icon. How can I either fix this, or uninstall? Thank you -

Replace create button text with plus symbol

Removing create button text will automatically increase the size of the search input

Fixed Original
option-1 option-2

Resource names like "Attributes" or "Permissions" will cut off completely

.btn {
    text-indent: -9999px;
    // ^ pulls text off screen
    font-weight: bolder;
    font-size: 26px;
    padding: 0 12px;
}
.btn:before {
    content: "+";
    position: relative;
}

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.