# HG changeset patch # User Goffi # Date 1692112338 -7200 # Node ID 5646df8bd3916c6016fa18ace1b572cce563c289 # Parent c5609be6c34e90edc741dc09b22555d6a098a7d4 bulma (call): calling mode improvments: - instead of a "switch" button, there are now 2 button with only an icon, one for video call and the other for audio call, they appear on the same row as the search bar - search item can now be extended using "call" blocks, and options are used - call search items don't show group, and now display an "extra" menu (3 dots menu) with a dropdown to select audio or video call. diff -r c5609be6c34e -r 5646df8bd391 sat_templates/templates/bulma/call/call.html --- a/sat_templates/templates/bulma/call/call.html Mon Aug 14 17:01:35 2023 +0200 +++ b/sat_templates/templates/bulma/call/call.html Tue Aug 15 17:12:18 2023 +0200 @@ -13,25 +13,36 @@ {# Search #}
-
-
- -
+ +
+
-
- -
+ + +
+ +
+
-
+
diff -r c5609be6c34e -r 5646df8bd391 sat_templates/templates/bulma/call/search_item.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sat_templates/templates/bulma/call/search_item.html Tue Aug 15 17:12:18 2023 +0200 @@ -0,0 +1,42 @@ +{% extends 'components/search_item.html' %} + +{% import 'components/avatar.html' as avatar with context %} + +{% block call %} + +{% endblock %} diff -r c5609be6c34e -r 5646df8bd391 sat_templates/templates/bulma/components/search_item.html --- a/sat_templates/templates/bulma/components/search_item.html Mon Aug 14 17:01:35 2023 +0200 +++ b/sat_templates/templates/bulma/components/search_item.html Tue Aug 15 17:12:18 2023 +0200 @@ -1,5 +1,5 @@ {% import 'components/avatar.html' as avatar with context %} -
+
+p diff -r c5609be6c34e -r 5646df8bd391 sat_templates/templates/bulma/static/call.css --- a/sat_templates/templates/bulma/static/call.css Mon Aug 14 17:01:35 2023 +0200 +++ b/sat_templates/templates/bulma/static/call.css Tue Aug 15 17:12:18 2023 +0200 @@ -74,15 +74,41 @@ color: #999; } -.dropdown .dropdown-menu { - display: none; -} - -.dropdown.is-active .dropdown-menu { - display: block; -} - .call_status { padding-top: 1.3rem; padding-bottom: 1.3rem; } + +.dropdown-menu{ + min-width: 0; +} + +/* Hide the call button by default on larger screens */ +.card .dropdown-trigger { + opacity: 0; + transition: opacity 0.3s; +} + +/* Show the button when the card is hovered */ +.card:hover .dropdown-trigger { + opacity: 1; +} + +/* Ensure it's always visible on smaller screens */ +@media (max-width: 768px) { + .card .dropdown-trigger { + opacity: 1; + } +} + +/* Position the button at the top right */ +.level-right { + position: absolute; + top: 0.5rem; + right: 0.5rem; +} + +/* Add some spacing between the icon and the edges of the button */ +.icon-dot-3-vert { + margin: 0 0.5rem; +}