materialize icon indicating copy to clipboard operation
materialize copied to clipboard

Tab indicator display incorect after update

Open zigy opened this issue 12 years ago • 7 comments

image

Tab indicator in container tag display incorect width after update to 0.9 ... Fix it pls

zigy avatar Dec 01 '14 19:12 zigy

Do you have any code examples, browser versions or console errors? It's hard for us to recreate a bug like this so more information would be appreciated

acburst avatar Dec 02 '14 04:12 acburst

Console 0 errors

HTML code

<div class="row">
   <div class="tab-sub-menu">
      <div class="container">
         <ul class="tabs">
            <li class="tab col s2">
               <a class="waves-effect waves-dark" href="#Something1">Something1</a>
            </li>
            <li class="tab col s2">
               <a class="waves-effect waves-dark" href="#Something2">Something2</a>
            </li>
         </ul>
      </div>
   </div>
</div>

I only add one class to CSS

.tab-sub-menu {
   background-color: #ff6f00;
   height: 48px;
}

Please fix it or help me :+1:

zigy avatar Dec 04 '14 17:12 zigy

The problem is related to having col s2 on the individual tabs. If you want your tabs lie on the grid, it is better to add a col s4 on your tab-sub-menu

  <div class="row">
   <div class="tab-sub-menu col s6">
      <div class="container">
         <ul class="tabs">
            <li class="tab">
               <a class="waves-effect waves-dark" href="#Something1">Something1</a>
            </li>
            <li class="tab">
               <a class="waves-effect waves-dark" href="#Something2">Something2</a>
            </li>
         </ul>
      </div>
   </div>
</div>

Dogfalo avatar Dec 04 '14 17:12 Dogfalo

Wow, now it works! :) I just change "s6" to "s12" :+1:

zigy avatar Dec 04 '14 18:12 zigy

Great! Also your site is looking nice! When you are finished with it, can you provide us with the URL so we can put it on our Showcase?

Dogfalo avatar Dec 04 '14 18:12 Dogfalo

Of course! I will be very happy;) I creating cloud storage with many features. I'll contact you when it will be done.. Working domain is: http://ocloud.zigy.cz but it is only alpha version without functions and only in Czech language (working on translate to English)..

zigy avatar Dec 04 '14 18:12 zigy

Thanks, I'll keep an eye on it.

Dogfalo avatar Dec 04 '14 19:12 Dogfalo