jquery-datatables icon indicating copy to clipboard operation
jquery-datatables copied to clipboard

Bug: search input overflow in small screens in Bootstrap

Open Ana06 opened this issue 7 years ago • 2 comments

I am using Bootstrap 4 and jquery-datatables 1.10.19.1. I have the following code:

<div class='row'>
  <div class='col-12 col-md-4 col-lg-3'>
    <!-- Content -->
  </div>

</div>
<div class='col-12 col-md-8 col-lg-9'>

  <table class='table table-striped table-bordered' id='involved-packages-table'>
    <thead>
      <tr>
        <th>Package</th>
        <th>Project</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td>
          <a href="/package/show/hola:Ana/ikyuikyuhkl">ikyuikyuhkl</a>
        </td>
        <td>
          <a href="/project/show/hola:Ana">hola:Ana</a>
        </td>
      </tr>
    </tbody>
  </table>
</div>

Which in an screen of 950px looks like: image

It seems the problem is the width in the input, which comes from this code: https://github.com/mkhairi/jquery-datatables/blob/12aa184b656f82bf1190ee1a7e796e08afafb69d/app/assets/stylesheets/datatables/dataTables.bootstrap.scss#L54

This may be related: https://github.com/DataTables/Plugins/issues/110

Ana06 avatar Nov 29 '18 15:11 Ana06

hi @Ana06, you should include dataTables.bootstrap4.scss instead for bootstrap4.

mkhairi avatar Dec 05 '18 03:12 mkhairi

@mkhairi That's the one I have included. Maybe my guess why this is happening is wrong, but the issue is still there.

This is my stylesheets/webui2/datatables.scss file: https://github.com/openSUSE/open-build-service/blob/master/src/api/app/assets/stylesheets/webui2/datatables.scss

Ana06 avatar Feb 07 '19 15:02 Ana06