Merge branch 'master' into remixdm

pull/5370/head
David Disu 3 years ago committed by GitHub
commit 8a57838b8a
  1. 1
      libs/remix-ui/home-tab/src/lib/remix-ui-home-tab.tsx
  2. 2
      libs/remix-ui/vertical-icons-panel/src/lib/components/Home.tsx
  3. 2
      libs/remix-ui/vertical-icons-panel/src/lib/components/Icon.tsx
  4. 11
      libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.css
  5. 6
      libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.tsx

@ -173,7 +173,6 @@ export const RemixUiHomeTab = (props: RemixUiHomeTabProps) => {
_paq.push(['trackEvent', 'pluginManager', 'userActivate', 'sourcify']) _paq.push(['trackEvent', 'pluginManager', 'userActivate', 'sourcify'])
} }
const startPluginManager = async () => { const startPluginManager = async () => {
await plugin.appManager.activatePlugin('pluginManager')
plugin.verticalIcons.select('pluginManager') plugin.verticalIcons.select('pluginManager')
} }

@ -7,7 +7,7 @@ interface HomeProps {
function Home ({ verticalIconPlugin }: HomeProps) { function Home ({ verticalIconPlugin }: HomeProps) {
return ( return (
<div <div
className="mt-3 my-1 remixui_homeIcon" className="mt-2 my-1 remixui_homeIcon"
onClick={async () => await verticalIconPlugin.activateHome()} onClick={async () => await verticalIconPlugin.activateHome()}
{...{ plugin: 'home'}} {...{ plugin: 'home'}}
title="Home" title="Home"

@ -85,7 +85,7 @@ const Icon = ({
return ( return (
<> <>
<div <div
className={`remixui_icon m-2 pl-1`} className={`remixui_icon m-2 pt-1`}
onClick={() => { onClick={() => {
(verticalIconPlugin as any).toggle(name) (verticalIconPlugin as any).toggle(name)
}} }}

@ -29,6 +29,7 @@
width: 36px; width: 36px;
height: 36px; height: 36px;
border-radius: 8px; border-radius: 8px;
align-items: center;
} }
.remixui_icon img { .remixui_icon img {
width: 28px; width: 28px;
@ -39,15 +40,12 @@
.remixui_icon .selected-dark { .remixui_icon .selected-dark {
filter: invert(1) grayscale(1); filter: invert(1) grayscale(1);
} }
.remixui_icon .selected-light { .remixui_icon .selected-light {
filter: invert(0) grayscale(1); filter: invert(0) grayscale(1);
} }
.remixui_image {
}
.remixui_icon svg { .remixui_icon svg {
width: 28px; width: 28px;
height: 28px; height: 28px;
@ -119,9 +117,12 @@
} }
.remixui_default-icons-container { .remixui_default-icons-container {
border-bottom: 2px solid #3f4455; border-bottom: 2px solid #3f4455;
text-align: center;
} }
.remixui_icon-chevron { .remixui_icon-chevron {
z-index: 1000; z-index: 1000;
cursor: pointer;
align-items: center;
} }
.remixui_settings { .remixui_settings {
@ -132,7 +133,3 @@
list-style: none; list-style: none;
margin: 0px; margin: 0px;
} }
.remixui_icon-chevron {
cursor: pointer;
}

@ -90,7 +90,7 @@ const RemixUiVerticalIconsPanel = ({
<Chevron <Chevron
direction='up' direction='up'
divElementRef={scrollableRef} divElementRef={scrollableRef}
cssRule={'fa fa-chevron-up remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} cssRule={'fa fa-chevron-up remixui_icon-chevron my-0'}
/> />
) : null ) : null
} }
@ -109,11 +109,11 @@ const RemixUiVerticalIconsPanel = ({
itemContextAction={itemContextAction} itemContextAction={itemContextAction}
/> />
</div> </div>
<div> <div className="remixui_default-icons-container border-0">
{ scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (<Chevron { scrollableRef.current && scrollableRef.current.scrollHeight > scrollableRef.current.clientHeight ? (<Chevron
divElementRef={scrollableRef} divElementRef={scrollableRef}
direction='down' direction='down'
cssRule={'fa fa-chevron-down remixui_icon-chevron mt-0 mb-0 ml-1 pl-3'} cssRule={'fa fa-chevron-down remixui_icon-chevron my-0'}
/>) : null } />) : null }
<IconList <IconList
theme={theme} theme={theme}

Loading…
Cancel
Save