Fix contacts header icons

This commit is contained in:
DianaXWiki 2025-09-09 15:33:32 +03:00
parent 885ac145d1
commit bea90091fb
2 changed files with 10 additions and 7 deletions

View File

@ -256,6 +256,9 @@
justify-content: space-between;
align-items: center;
height: 50px;
svg {
margin-right: 0;
}
.hover () {
height: 100%;

View File

@ -243,10 +243,10 @@ define([
$(getChat(id)).find('.cp-app-contacts-messages').html('');
};
markup.chatbox = function (id, data, curvePublic) {
var moreHistory = h('span', Icons.get('history', {
var moreHistory = h('span', {
class: 'cp-app-contacts-more-history',
title: Messages.contacts_fetchHistory,
}));
});
moreHistory.append(Icons.get('history', {title: Messages.contacts_fetchHistory}));
var chan = state.channels[id];
var displayName = UI.getDisplayName(chan.name || chan.displayName);
@ -308,10 +308,10 @@ define([
});
});
var removeHistory = h('span', Icons.get('remove-history', {
'class': 'cp-app-contacts-remove-history',
title: Messages.contacts_removeHistoryTitle
}));
var removeHistory = h('span', {
'class': 'cp-app-contacts-remove-history'
});
removeHistory.append(Icons.get('remove-history', {title: Messages.contacts_removeHistoryTitle}));
$(removeHistory).click(function () {
UI.confirm(Messages.contacts_confirmRemoveHistory, function (yes) {