theme: Fix up padding for the file chooser

We need the padding inside the filelistcell, so that
its event controllers cover the whole area.

Introduce a .complex style class for columnviews that
achieves that, and make the filechooser use it.
This commit is contained in:
Matthias Clasen 2022-10-21 07:55:15 -04:00
parent c0e8523a01
commit 0370979225
2 changed files with 27 additions and 0 deletions

View File

@ -3369,6 +3369,30 @@ columnview row:not(:selected) cell editablelabel.editing text selection {
}
}
/********************************************************
* Complex Lists *
* Put padding on the cell content so event controllers *
* can cover the whole area. *
********************************************************/
columnview.complex {
> listview > row > cell {
padding: 0;
> * {
padding: 8px 6px;
}
}
// shrink vertically for .data-table
&.data-table > listview > row > cell {
padding: 0;
> * {
padding-top: 2px;
padding-bottom: 2px;
}
}
}
/*********************
* App Notifications *
*********************/

View File

@ -141,6 +141,9 @@
<property name="vexpand">1</property>
<child>
<object class="GtkColumnView" id="browse_files_column_view">
<style>
<class name="complex"/>
</style>
<signal name="activate" handler="column_view_row_activated_cb" swapped="no"/>
<signal name="keynav-failed" handler="browse_files_column_view_keynav_failed_cb"/>
<child>