startbootstrap-sb-admin-2 icon indicating copy to clipboard operation
startbootstrap-sb-admin-2 copied to clipboard

Datatables input glow cut off

Open mvanbeekum opened this issue 5 years ago • 5 comments

Is there a quick fix to have the focused input box show the full dropshadow/glow?

image

mvanbeekum avatar Aug 22 '19 18:08 mvanbeekum

The "glow" (the :focus style) is being hidden by the overflow rule from .table-responsive. If you eliminate that wrapper div, the style displays as (likely) intended. Whether that works for you is up to your needs when customizing / implementing this template.

This is a known "issue" with the table component: https://getbootstrap.com/docs/4.3/content/tables/#responsive-tables

tiesont avatar Aug 22 '19 22:08 tiesont

The .table-responsive class is pretty useful for me so I'd like to keep it.

I've added some padding to it as a quick fix: <div class="table-responsive" style="padding: 3px 3px 0 0;">

mvanbeekum avatar Aug 22 '19 23:08 mvanbeekum

You could also add a consistent bit of padding around the whole table, using one of the padding classes:

<div class="table-responsive p-1">

With that, you get the whole focus effect and the same amount of white-space on each side of the grid.

tiesont avatar Aug 22 '19 23:08 tiesont

That also worked well. Thank you.

mvanbeekum avatar Aug 23 '19 15:08 mvanbeekum

can i fix this issue?

Harpreet-kaurr avatar May 09 '23 19:05 Harpreet-kaurr