Bug 38201: DT - Remove 'autoWidth: false'

The default is "true" and is what we use in datatables.js.

This patch also moves the CSS rules to BaseResource to avoid
duplication.

The style of DT was modified in the item list of a train, because it inherited from fieldset.rows ol table (staff-global).

(cherry picked from commit 713d2598a05e501a46d1d1b8557e7d6bf8863f0b)
Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2025-06-26 13:39:13 +02:00 committed by Lucas Gass
parent adfde0959f
commit a2f1a232be
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
14 changed files with 7 additions and 45 deletions

View File

@ -86,3 +86,10 @@ export default {
name: "BaseResource",
};
</script>
<style>
fieldset.rows ol table {
display: table;
font-size: 100%;
}
</style>

View File

@ -168,9 +168,6 @@ export default {
};
</script>
<style>
#add_agreement #agreements_list table {
display: table;
}
#add_agreement .filters label {
float: none !important;
}

View File

@ -90,7 +90,6 @@ export default {
[10, 20, 50, 100],
[10, 20, 50, 100],
],
autoWidth: false,
columns: [
{
title: __("Name"),
@ -187,9 +186,6 @@ export default {
</script>
<style scoped>
#package_list {
display: table;
}
#filters fieldset {
margin: 0;
}

View File

@ -376,9 +376,3 @@ export default {
},
};
</script>
<style scoped>
:deep(fieldset.rows ol table) {
display: table;
}
</style>

View File

@ -31,7 +31,6 @@ export default {
data: resources,
embed: ["package.name"],
order: [[0, "asc"]],
autoWidth: false,
columns: [
{
title: __("Name"),
@ -90,9 +89,3 @@ export default {
name: "EHoldingsLocalTitlePackagesList",
};
</script>
<style scoped>
#package_list {
display: table;
}
</style>

View File

@ -532,9 +532,6 @@ export default {
</script>
<style scoped>
:deep(fieldset.rows ol table) {
display: table;
}
:deep(fieldset.rows label) {
width: 25rem;
}

View File

@ -65,7 +65,6 @@ export default {
$("#" + table_id).kohaTable({
data: lists,
order: [[0, "asc"]],
autoWidth: false,
columns: [
{
title: __("Name"),

View File

@ -168,9 +168,3 @@ export default {
name: "UsageStatisticsTitlesList",
};
</script>
<style scoped>
#title_list {
display: table;
}
</style>

View File

@ -368,9 +368,6 @@ export default {
</script>
<style scoped>
#usage_data_provider_list {
display: table;
}
.toolbar_options {
display: flex;
}

View File

@ -163,9 +163,6 @@ export default {
</script>
<style scoped>
#usage_data_provider_summary {
display: table;
}
.hide-table {
display: none;
}

View File

@ -161,9 +161,3 @@ export default {
name: "UsageStatisticsProviderDataList",
};
</script>
<style scoped>
#title_list {
display: table;
}
</style>

View File

@ -68,7 +68,6 @@ export default {
const allOptions = ref({
paging: true,
searching: true,
autoWidth: false,
...(props.url && {
ajax: {
url:

View File

@ -269,7 +269,6 @@ export default {
let table = $("#" + tableId).kohaTable({
data: itemTable.data,
ordering: false,
autoWidth: false,
columns: itemTable.columns,
drawCallback: function (settings) {
var api = new $.fn.dataTable.Api(settings);

View File

@ -826,7 +826,6 @@ export default {
: []),
],
dom: '<<"table_entries">>',
autoWidth: false,
data: componentData.resource.contracts,
},
},