Giter Site home page Giter Site logo

blocknotes / activeadmin_materialize_theme Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 2.0 629 KB

A theme for Active Admin based on Materialize framework

License: MIT License

Ruby 9.60% JavaScript 61.62% SCSS 27.55% CSS 0.14% HTML 1.09%
activeadmin activeadmin-themes rails ruby

activeadmin_materialize_theme's Issues

Is theme Full Screen?

Thanks in advance for the great work. Not sure if its a bug or I installed improperlly. But shluld it be full screen, if not how would I make these changes? Please see depicted screenshot using rails 7.

full_screen_material

Tabs don't work for show due to scoping to formtastic

Tabs don't work for show due to scoping to formtastic

Cause:

function initTabs() {
document.querySelectorAll('body.active_admin .formtastic >.tabs').forEach(
(el) => el.classList.remove('tabs')
)
addClassToElements('body.active_admin .formtastic .nav-tabs', 'tabs')
addClassToElements('body.active_admin .formtastic .nav-tabs >li', 'tab')
}

Workaround:

show do
  div class: 'formtastic' do 
    tabs do
      tab do 
        # ...
      end
    end
  end
end

Progress / Roadmap?

Hey, hows it going?

Are you active with this?

Wondering if we can clean up some of the UI to behave like: https://github.com/vigetlabs/active_material

https://camo.githubusercontent.com/d1a2196060649a2df9db240351ab6c45cd617aaad70540fbfdfe15abea836aea/687474703a2f2f692e696d6775722e636f6d2f6b446b477a59652e706e67

Wishlist:

  • Dropdown actions menu inside index
  • Dropdown utility menu
  • Filter/Inputs aligned horizontally

Generally the UI feels less spacious/more optimized in vigetlabs old implementation.

Nested menus don't work (or dropdown)

Much appreciate the great work! The issue I'm running into is nested menus do not drop down at all. For example:

ActiveAdmin.register Post do
  menu parent: "Blog"
end

ActiveAdmin menus normally would if a parent is specified, cause the particular page Post to appear under a given menu, but is instead the child menu overlaps its parent.

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.