diff --git a/assets/css/app/helpers.css b/assets/css/app/helpers.css index 23476d38..acc2682e 100644 --- a/assets/css/app/helpers.css +++ b/assets/css/app/helpers.css @@ -36,18 +36,6 @@ height: 1.5em; } -.hoverpic { - min-width: 10px; - max-width: 30px; - display: block; - margin-left: auto; - margin-right: auto; -} - -.thumbnail-sm { - max-height: 100px; -} - /* Show symbol after exteral links */ /*noinspection CssNoGenericFontName*/ a[target="_blank"].link-external:after { diff --git a/assets/css/app/images.css b/assets/css/app/images.css new file mode 100644 index 00000000..8c6422d6 --- /dev/null +++ b/assets/css/app/images.css @@ -0,0 +1,37 @@ +/* + * This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony). + * + * Copyright (C) 2019 - 2023 Jan Böhmer (https://github.com/jbtronics) + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as published + * by the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +.hoverpic { + min-width: 10px; + max-width: 30px; + display: block; + margin-left: auto; + margin-right: auto; +} + +.thumbnail-sm { + max-height: 100px; +} + +.avatar-xs { + height: 1.2rem; + width: 1.2rem; + object-fit: cover; + border-radius: 5px; +} \ No newline at end of file diff --git a/assets/js/app.js b/assets/js/app.js index 34debb89..8242331f 100644 --- a/assets/js/app.js +++ b/assets/js/app.js @@ -26,6 +26,7 @@ import '../css/app/darkmode.css'; import '../css/app/tables.css'; import '../css/app/bs-overrides.css'; import '../css/app/treeview.css'; +import '../css/app/images.css'; // start the Stimulus application import '../bootstrap'; diff --git a/src/DataTables/LogDataTable.php b/src/DataTables/LogDataTable.php index 5d105035..69a96c27 100644 --- a/src/DataTables/LogDataTable.php +++ b/src/DataTables/LogDataTable.php @@ -234,7 +234,7 @@ class LogDataTable implements DataTableTypeInterface $img_url = $this->userAvatarHelper->getAvatarSmURL($user); return sprintf( - ' %s', + ' %s', $img_url, $this->userAvatarHelper->getAvatarMdURL($user), $this->urlGenerator->generate('user_info', ['id' => $user->getID()]), diff --git a/templates/helper.twig b/templates/helper.twig index 2e762491..721bd867 100644 --- a/templates/helper.twig +++ b/templates/helper.twig @@ -169,7 +169,7 @@ {% endmacro %} {% macro user_icon(user) %} - User avatar + User avatar {% endmacro %} {% macro entity_preview_sm(entity) %}