Add icons for status action bars
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
4eb9b3c26e
commit
bdb61c14e3
5 changed files with 243 additions and 49 deletions
|
@ -6,6 +6,7 @@ import Overlay from 'react-overlays/lib/Overlay';
|
||||||
import Motion from '../features/ui/util/optional_motion';
|
import Motion from '../features/ui/util/optional_motion';
|
||||||
import spring from 'react-motion/lib/spring';
|
import spring from 'react-motion/lib/spring';
|
||||||
import { supportsPassiveEvents } from 'detect-passive-events';
|
import { supportsPassiveEvents } from 'detect-passive-events';
|
||||||
|
import Icon from 'soapbox/components/icon';
|
||||||
|
|
||||||
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
const listenerOptions = supportsPassiveEvents ? { passive: true } : false;
|
||||||
let id = 0;
|
let id = 0;
|
||||||
|
@ -146,7 +147,7 @@ class DropdownMenu extends React.PureComponent {
|
||||||
return <li key={`sep-${i}`} className='dropdown-menu__separator' />;
|
return <li key={`sep-${i}`} className='dropdown-menu__separator' />;
|
||||||
}
|
}
|
||||||
|
|
||||||
const { text, href, to, newTab, isLogout } = option;
|
const { text, href, to, newTab, isLogout, icon } = option;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<li className='dropdown-menu__item' key={`${text}-${i}`}>
|
<li className='dropdown-menu__item' key={`${text}-${i}`}>
|
||||||
|
@ -162,6 +163,7 @@ class DropdownMenu extends React.PureComponent {
|
||||||
target={newTab ? '_blank' : null}
|
target={newTab ? '_blank' : null}
|
||||||
data-method={isLogout ? 'delete' : null}
|
data-method={isLogout ? 'delete' : null}
|
||||||
>
|
>
|
||||||
|
{icon && <Icon src={icon} />}
|
||||||
{text}
|
{text}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -301,15 +301,31 @@ class StatusActionBar extends ImmutablePureComponent {
|
||||||
|
|
||||||
const menu = [];
|
const menu = [];
|
||||||
|
|
||||||
menu.push({ text: intl.formatMessage(messages.open), action: this.handleOpen });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.open),
|
||||||
|
action: this.handleOpen,
|
||||||
|
icon: require('@tabler/icons/icons/arrows-vertical.svg'),
|
||||||
|
});
|
||||||
|
|
||||||
if (publicStatus) {
|
if (publicStatus) {
|
||||||
menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });
|
menu.push({
|
||||||
// menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
text: intl.formatMessage(messages.copy),
|
||||||
|
action: this.handleCopy,
|
||||||
|
icon: require('@tabler/icons/icons/link.svg'),
|
||||||
|
});
|
||||||
|
// menu.push({
|
||||||
|
// text: intl.formatMessage(messages.embed),
|
||||||
|
// action: this.handleEmbed,
|
||||||
|
// icon: require('feather-icons/dist/icons/link-2.svg'),
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (features.bookmarks) {
|
if (features.bookmarks) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('bookmarked') ? messages.unbookmark : messages.bookmark), action: this.handleBookmarkClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('bookmarked') ? messages.unbookmark : messages.bookmark),
|
||||||
|
action: this.handleBookmarkClick,
|
||||||
|
icon: require(status.get('bookmarked') ? '@tabler/icons/icons/bookmark-off.svg' : '@tabler/icons/icons/bookmark.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!me) {
|
if (!me) {
|
||||||
|
@ -319,57 +335,133 @@ class StatusActionBar extends ImmutablePureComponent {
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
|
|
||||||
if (ownAccount || withDismiss) {
|
if (ownAccount || withDismiss) {
|
||||||
menu.push({ text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation), action: this.handleConversationMuteClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation),
|
||||||
|
action: this.handleConversationMuteClick,
|
||||||
|
icon: require(mutingConversation ? '@tabler/icons/icons/bell.svg' : '@tabler/icons/icons/bell-off.svg'),
|
||||||
|
});
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ownAccount) {
|
if (ownAccount) {
|
||||||
if (publicStatus) {
|
if (publicStatus) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin), action: this.handlePinClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin),
|
||||||
|
action: this.handlePinClick,
|
||||||
|
icon: require(mutingConversation ? '@tabler/icons/icons/pinned-off.svg' : '@tabler/icons/icons/pin.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
if (status.get('visibility') === 'private') {
|
if (status.get('visibility') === 'private') {
|
||||||
menu.push({ text: intl.formatMessage(status.get('reblogged') ? messages.cancel_reblog_private : messages.reblog_private), action: this.handleReblogClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('reblogged') ? messages.cancel_reblog_private : messages.reblog_private),
|
||||||
|
action: this.handleReblogClick,
|
||||||
|
icon: require('@tabler/icons/icons/repeat.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push({ text: intl.formatMessage(messages.delete), action: this.handleDeleteClick });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.redraft), action: this.handleRedraftClick });
|
text: intl.formatMessage(messages.delete),
|
||||||
|
action: this.handleDeleteClick,
|
||||||
|
icon: require('@tabler/icons/icons/trash.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.redraft),
|
||||||
|
action: this.handleRedraftClick,
|
||||||
|
icon: require('@tabler/icons/icons/edit.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.push({ text: intl.formatMessage(messages.mention, { name: status.getIn(['account', 'username']) }), action: this.handleMentionClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.mention, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleMentionClick,
|
||||||
|
icon: require('feather-icons/dist/icons/at-sign.svg'),
|
||||||
|
});
|
||||||
|
|
||||||
if (status.getIn(['account', 'pleroma', 'accepts_chat_messages'], false) === true) {
|
if (status.getIn(['account', 'pleroma', 'accepts_chat_messages'], false) === true) {
|
||||||
menu.push({ text: intl.formatMessage(messages.chat, { name: status.getIn(['account', 'username']) }), action: this.handleChatClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.chat, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleChatClick,
|
||||||
|
icon: require('@tabler/icons/icons/messages.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.push({ text: intl.formatMessage(messages.direct, { name: status.getIn(['account', 'username']) }), action: this.handleDirectClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.direct, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleDirectClick,
|
||||||
|
icon: require('@tabler/icons/icons/mail.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
menu.push({ text: intl.formatMessage(messages.mute, { name: status.getIn(['account', 'username']) }), action: this.handleMuteClick });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.block, { name: status.getIn(['account', 'username']) }), action: this.handleBlockClick });
|
text: intl.formatMessage(messages.mute, { name: status.getIn(['account', 'username']) }),
|
||||||
menu.push({ text: intl.formatMessage(messages.report, { name: status.getIn(['account', 'username']) }), action: this.handleReport });
|
action: this.handleMuteClick,
|
||||||
|
icon: require('@tabler/icons/icons/circle-x.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.block, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleBlockClick,
|
||||||
|
icon: require('@tabler/icons/icons/ban.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.report, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleReport,
|
||||||
|
icon: require('@tabler/icons/icons/flag.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isStaff) {
|
if (isStaff) {
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
|
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
menu.push({ text: intl.formatMessage(messages.admin_account, { name: status.getIn(['account', 'username']) }), href: `/pleroma/admin/#/users/${status.getIn(['account', 'id'])}/` });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.admin_status), href: `/pleroma/admin/#/statuses/${status.get('id')}/` });
|
text: intl.formatMessage(messages.admin_account, { name: status.getIn(['account', 'username']) }),
|
||||||
|
href: `/pleroma/admin/#/users/${status.getIn(['account', 'id'])}/`,
|
||||||
|
icon: require('icons/gavel.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.admin_status),
|
||||||
|
href: `/pleroma/admin/#/statuses/${status.get('id')}/`,
|
||||||
|
icon: require('@tabler/icons/icons/pencil.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push({ text: intl.formatMessage(status.get('sensitive') === false ? messages.markStatusSensitive : messages.markStatusNotSensitive), action: this.handleToggleStatusSensitivity });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('sensitive') === false ? messages.markStatusSensitive : messages.markStatusNotSensitive),
|
||||||
|
action: this.handleToggleStatusSensitivity,
|
||||||
|
icon: require('@tabler/icons/icons/alert-triangle.svg'),
|
||||||
|
});
|
||||||
|
|
||||||
if (!ownAccount) {
|
if (!ownAccount) {
|
||||||
menu.push({ text: intl.formatMessage(messages.deactivateUser, { name: status.getIn(['account', 'username']) }), action: this.handleDeactivateUser });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.deleteUser, { name: status.getIn(['account', 'username']) }), action: this.handleDeleteUser });
|
text: intl.formatMessage(messages.deactivateUser, { name: status.getIn(['account', 'username']) }),
|
||||||
menu.push({ text: intl.formatMessage(messages.deleteStatus), action: this.handleDeleteStatus });
|
action: this.handleDeactivateUser,
|
||||||
|
icon: require('@tabler/icons/icons/user-off.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.deleteUser, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleDeleteUser,
|
||||||
|
icon: require('@tabler/icons/icons/user-minus.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.deleteStatus),
|
||||||
|
action: this.handleDeleteStatus,
|
||||||
|
icon: require('@tabler/icons/icons/trash.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ownAccount && withGroupAdmin) {
|
if (!ownAccount && withGroupAdmin) {
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
menu.push({ text: intl.formatMessage(messages.group_remove_account), action: this.handleGroupRemoveAccount });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.group_remove_post), action: this.handleGroupRemovePost });
|
text: intl.formatMessage(messages.group_remove_account),
|
||||||
|
action: this.handleGroupRemoveAccount,
|
||||||
|
icon: require('@tabler/icons/icons/user-x.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.group_remove_post),
|
||||||
|
action: this.handleGroupRemovePost,
|
||||||
|
icon: require('@tabler/icons/icons/trash.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return menu;
|
return menu;
|
||||||
|
|
|
@ -317,59 +317,139 @@ class ActionBar extends React.PureComponent {
|
||||||
const menu = [];
|
const menu = [];
|
||||||
|
|
||||||
if (publicStatus) {
|
if (publicStatus) {
|
||||||
menu.push({ text: intl.formatMessage(messages.copy), action: this.handleCopy });
|
menu.push({
|
||||||
// menu.push({ text: intl.formatMessage(messages.embed), action: this.handleEmbed });
|
text: intl.formatMessage(messages.copy),
|
||||||
|
action: this.handleCopy,
|
||||||
|
icon: require('@tabler/icons/icons/link.svg'),
|
||||||
|
});
|
||||||
|
// menu.push({
|
||||||
|
// text: intl.formatMessage(messages.embed),
|
||||||
|
// action: this.handleEmbed,
|
||||||
|
// icon: require('feather-icons/dist/icons/link-2.svg'),
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (features.bookmarks) {
|
if (features.bookmarks) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('bookmarked') ? messages.unbookmark : messages.bookmark), action: this.handleBookmarkClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('bookmarked') ? messages.unbookmark : messages.bookmark),
|
||||||
|
action: this.handleBookmarkClick,
|
||||||
|
icon: require(status.get('bookmarked') ? '@tabler/icons/icons/bookmark-off.svg' : '@tabler/icons/icons/bookmark.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
|
|
||||||
if (ownAccount) {
|
if (ownAccount) {
|
||||||
if (publicStatus) {
|
if (publicStatus) {
|
||||||
menu.push({ text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin), action: this.handlePinClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('pinned') ? messages.unpin : messages.pin),
|
||||||
|
action: this.handlePinClick,
|
||||||
|
icon: require(mutingConversation ? '@tabler/icons/icons/pinned-off.svg' : '@tabler/icons/icons/pin.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
if (status.get('visibility') === 'private') {
|
if (status.get('visibility') === 'private') {
|
||||||
menu.push({ text: intl.formatMessage(status.get('reblogged') ? messages.cancel_reblog_private : messages.reblog_private), action: this.handleReblogClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('reblogged') ? messages.cancel_reblog_private : messages.reblog_private),
|
||||||
|
action: this.handleReblogClick,
|
||||||
|
icon: require('@tabler/icons/icons/repeat.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
menu.push({ text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation), action: this.handleConversationMuteClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(mutingConversation ? messages.unmuteConversation : messages.muteConversation),
|
||||||
|
action: this.handleConversationMuteClick,
|
||||||
|
icon: require(mutingConversation ? '@tabler/icons/icons/bell.svg' : '@tabler/icons/icons/bell-off.svg'),
|
||||||
|
});
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
menu.push({ text: intl.formatMessage(messages.delete), action: this.handleDeleteClick });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.redraft), action: this.handleRedraftClick });
|
text: intl.formatMessage(messages.delete),
|
||||||
|
action: this.handleDeleteClick,
|
||||||
|
icon: require('@tabler/icons/icons/trash.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.redraft),
|
||||||
|
action: this.handleRedraftClick,
|
||||||
|
icon: require('@tabler/icons/icons/edit.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.push({ text: intl.formatMessage(messages.mention, { name: status.getIn(['account', 'username']) }), action: this.handleMentionClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.mention, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleMentionClick,
|
||||||
|
icon: require('feather-icons/dist/icons/at-sign.svg'),
|
||||||
|
});
|
||||||
|
|
||||||
if (status.getIn(['account', 'pleroma', 'accepts_chat_messages'], false) === true) {
|
if (status.getIn(['account', 'pleroma', 'accepts_chat_messages'], false) === true) {
|
||||||
menu.push({ text: intl.formatMessage(messages.chat, { name: status.getIn(['account', 'username']) }), action: this.handleChatClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.chat, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleChatClick,
|
||||||
|
icon: require('@tabler/icons/icons/messages.svg'),
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
menu.push({ text: intl.formatMessage(messages.direct, { name: status.getIn(['account', 'username']) }), action: this.handleDirectClick });
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.direct, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleDirectClick,
|
||||||
|
icon: require('@tabler/icons/icons/mail.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
menu.push({ text: intl.formatMessage(messages.mute, { name: status.getIn(['account', 'username']) }), action: this.handleMuteClick });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.block, { name: status.getIn(['account', 'username']) }), action: this.handleBlockClick });
|
text: intl.formatMessage(messages.mute, { name: status.getIn(['account', 'username']) }),
|
||||||
menu.push({ text: intl.formatMessage(messages.report, { name: status.getIn(['account', 'username']) }), action: this.handleReport });
|
action: this.handleMuteClick,
|
||||||
|
icon: require('@tabler/icons/icons/circle-x.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.block, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleBlockClick,
|
||||||
|
icon: require('@tabler/icons/icons/ban.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.report, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleReport,
|
||||||
|
icon: require('@tabler/icons/icons/flag.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isStaff) {
|
if (isStaff) {
|
||||||
menu.push(null);
|
menu.push(null);
|
||||||
|
|
||||||
if (isAdmin) {
|
if (isAdmin) {
|
||||||
menu.push({ text: intl.formatMessage(messages.admin_account, { name: status.getIn(['account', 'username']) }), href: `/pleroma/admin/#/users/${status.getIn(['account', 'id'])}/` });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.admin_status), href: `/pleroma/admin/#/statuses/${status.get('id')}/` });
|
text: intl.formatMessage(messages.admin_account, { name: status.getIn(['account', 'username']) }),
|
||||||
|
href: `/pleroma/admin/#/users/${status.getIn(['account', 'id'])}/`,
|
||||||
|
icon: require('icons/gavel.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.admin_status),
|
||||||
|
href: `/pleroma/admin/#/statuses/${status.get('id')}/`,
|
||||||
|
icon: require('@tabler/icons/icons/pencil.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
menu.push({ text: intl.formatMessage(status.get('sensitive') === false ? messages.markStatusSensitive : messages.markStatusNotSensitive), action: this.handleToggleStatusSensitivity });
|
menu.push({
|
||||||
|
text: intl.formatMessage(status.get('sensitive') === false ? messages.markStatusSensitive : messages.markStatusNotSensitive),
|
||||||
|
action: this.handleToggleStatusSensitivity,
|
||||||
|
icon: require('@tabler/icons/icons/alert-triangle.svg'),
|
||||||
|
});
|
||||||
|
|
||||||
if (!ownAccount) {
|
if (!ownAccount) {
|
||||||
menu.push({ text: intl.formatMessage(messages.deactivateUser, { name: status.getIn(['account', 'username']) }), action: this.handleDeactivateUser });
|
menu.push({
|
||||||
menu.push({ text: intl.formatMessage(messages.deleteUser, { name: status.getIn(['account', 'username']) }), action: this.handleDeleteUser });
|
text: intl.formatMessage(messages.deactivateUser, { name: status.getIn(['account', 'username']) }),
|
||||||
menu.push({ text: intl.formatMessage(messages.deleteStatus), action: this.handleDeleteStatus });
|
action: this.handleDeactivateUser,
|
||||||
|
icon: require('@tabler/icons/icons/user-off.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.deleteUser, { name: status.getIn(['account', 'username']) }),
|
||||||
|
action: this.handleDeleteUser,
|
||||||
|
icon: require('@tabler/icons/icons/user-minus.svg'),
|
||||||
|
});
|
||||||
|
menu.push({
|
||||||
|
text: intl.formatMessage(messages.deleteStatus),
|
||||||
|
action: this.handleDeleteStatus,
|
||||||
|
icon: require('@tabler/icons/icons/trash.svg'),
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
padding: 4px 0;
|
padding: 4px 0;
|
||||||
color: var(--primary-text-color);
|
color: var(--primary-text-color);
|
||||||
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
|
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.5);
|
||||||
max-width: 300px;
|
max-width: 350px;
|
||||||
&.left { transform-origin: 100% 50%; }
|
&.left { transform-origin: 100% 50%; }
|
||||||
&.top { transform-origin: 50% 100%; }
|
&.top { transform-origin: 50% 100%; }
|
||||||
&.bottom { transform-origin: 50% 0; }
|
&.bottom { transform-origin: 50% 0; }
|
||||||
|
@ -56,10 +56,12 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&__item a {
|
&__item a {
|
||||||
display: block;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
padding: 3px 10px 1px;
|
padding: 4px 10px;
|
||||||
|
font-size: 15px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
@ -76,13 +78,23 @@
|
||||||
color: #fff;
|
color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.svg-icon:first-child {
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
margin-right: 10px;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
stroke-width: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&__separator {
|
&__separator {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 10px !important;
|
margin: 10px !important;
|
||||||
height: 1px;
|
height: 1px;
|
||||||
background: var(--foreground-color);
|
background: hsla(var(--primary-text-color_hsl), 0.12);
|
||||||
}
|
}
|
||||||
|
|
||||||
&__item .account {
|
&__item .account {
|
||||||
|
|
|
@ -592,7 +592,15 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.svg-icon:first-child { margin-right: 10px; }
|
.svg-icon:first-child {
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
margin-right: 10px;
|
||||||
|
|
||||||
|
svg {
|
||||||
|
stroke-width: 1.5;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue