Refine compact IM channel tabs

This commit is contained in:
xmanrui 2026-08-15 04:47:38 +08:00 • committed by xiemanR
parent b8bd681a79
commit be5d045f67
4 changed files with 40 additions and 43 deletions

View file

@ -14,8 +14,8 @@ export const name = 'im-settings';
export const inject = ['slots', 'connection'];
const CHANNELS = Object.freeze([
{ id: 'weixin', label: '微信', description: '扫码绑定' },
{ id: 'feishu', label: '飞书', description: '扫码接入' },
{ id: 'weixin', label: '微信' },
{ id: 'feishu', label: '飞书' },
]);
function WeixinLogo() {
@ -64,9 +64,7 @@ export function IMSettingsTab({ feishuRpcCall, weixinRpcCall }) {
h(ChannelLogo, { channel: channel.id }),
h('span', { className: 'dim-channelCopy' },
h('strong', null, channel.label),
h('small', null, channel.description),
),
h('span', { className: 'dim-chevron', 'aria-hidden': 'true' }, '›')))),
)))),
h('div', { className: 'dim-divider', 'aria-hidden': 'true' }),
h('main', {
className: 'dim-panel',