diff --git a/includes/sys_template.php b/includes/sys_template.php index c4b0b09e..f7dfedb7 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -440,7 +440,7 @@ function button_help($topic = '') */ function buttons($buttons = []) { - return '
' . table_buttons($buttons) . '
'; + return '
' . table_buttons($buttons) . '
'; } /** diff --git a/includes/view/ShiftCalendarShiftRenderer.php b/includes/view/ShiftCalendarShiftRenderer.php index 5235501e..e23573e7 100644 --- a/includes/view/ShiftCalendarShiftRenderer.php +++ b/includes/view/ShiftCalendarShiftRenderer.php @@ -261,7 +261,7 @@ class ShiftCalendarShiftRenderer { $header_buttons = ''; if (auth()->can('admin_shifts')) { - $header_buttons = '
' . table_buttons([ + $header_buttons = '
' . table_buttons([ button( page_link_to('user_shifts', ['edit_shift' => $shift['SID']]), icon('pencil'), diff --git a/includes/view/ShiftsFilterRenderer.php b/includes/view/ShiftsFilterRenderer.php index d531c765..202298c6 100644 --- a/includes/view/ShiftsFilterRenderer.php +++ b/includes/view/ShiftsFilterRenderer.php @@ -64,7 +64,7 @@ class ShiftsFilterRenderer ); } } - return div('form-group', [ + return div('mb-3', [ toolbar_pills($toolbar) ]); } diff --git a/includes/view/Shifts_view.php b/includes/view/Shifts_view.php index 5d9d3075..3706d3a2 100644 --- a/includes/view/Shifts_view.php +++ b/includes/view/Shifts_view.php @@ -213,7 +213,7 @@ function Shift_view_render_needed_angeltype($needed_angeltype, $angeltypes, $shi } $needed_angels .= '
'; - $needed_angels .= '
' . Shift_signup_button_render($shift, $angeltype) . '
'; + $needed_angels .= '
' . Shift_signup_button_render($shift, $angeltype) . '
'; $needed_angels .= '

' . AngelType_name_render($angeltype) . '

'; $bar_max = max($needed_angeltype['count'] * 10, $needed_angeltype['taken'] * 10, 10); @@ -253,7 +253,7 @@ function Shift_view_render_shift_entry($shift_entry, $user_shift_admin, $angelty } $isUser = $shift_entry['UID'] == auth()->user()->id; if ($user_shift_admin || $angeltype_supporter || $isUser) { - $entry .= '
'; + $entry .= '
'; if ($user_shift_admin || $isUser) { $entry .= button_icon( page_link_to('user_myshifts', ['edit' => $shift_entry['id'], 'id' => $shift_entry['UID']]), diff --git a/includes/view/User_view.php b/includes/view/User_view.php index 0d086cc2..0b6a9509 100644 --- a/includes/view/User_view.php +++ b/includes/view/User_view.php @@ -615,7 +615,7 @@ function User_view( . (config('enable_user_name') ? ' ' . $user_name . '' : ''), [ msg(), - div('row space-top', [ + div('row m-3', [ div('col-md-12', [ buttons([ $admin_user_privilege ? button( diff --git a/resources/assets/js/forms.js b/resources/assets/js/forms.js index 1d073041..ed0f9a46 100644 --- a/resources/assets/js/forms.js +++ b/resources/assets/js/forms.js @@ -186,10 +186,10 @@ $('select').select2({ */ $(function () { $('#welcome-title').on('click', function () { - $('.form-group.btn-group .btn.hidden').removeClass('hidden'); + $('.btn-group.btn-group .btn.d-none').removeClass('d-none'); }); $('#oauth-settings-title').on('click', function () { - $('table tr.hidden').removeClass('hidden'); + $('table tr.d-none').removeClass('d-none'); }); }); diff --git a/resources/assets/themes/base.scss b/resources/assets/themes/base.scss index 2221eeba..49cacf5d 100644 --- a/resources/assets/themes/base.scss +++ b/resources/assets/themes/base.scss @@ -82,10 +82,6 @@ table a > .icon-icon_angel { background-color: $body-color; } -.table .form-group { - margin-bottom: 0; -} - .stats { font-size: 20px; height: 150px; @@ -242,10 +238,6 @@ table a > .icon-icon_angel { } } -.space-top { - margin-top: 15px; -} - .column_duration { text-align: right; } diff --git a/resources/views/macros/form.twig b/resources/views/macros/form.twig index 4d3b3719..c9ec5cf9 100644 --- a/resources/views/macros/form.twig +++ b/resources/views/macros/form.twig @@ -66,7 +66,9 @@ {%- endmacro %} {% macro button(label, opt) %} -