Browse Source

Misc fixes

- Consistent tab styles
- Popover placement
master
jeffvli 3 years ago
committed by Jeff
parent
commit
eefb96c262
  1. 4
      src/components/layout/Layout.tsx
  2. 2
      src/components/settings/Config.tsx
  3. 2
      src/components/viewtypes/ListViewType.tsx

4
src/components/layout/Layout.tsx

@ -214,7 +214,7 @@ const Layout = ({ footer, children, disableSidebar, font }: any) => {
<Nav <Nav
activeKey={activeConfigNav} activeKey={activeConfigNav}
onSelect={(e) => setActiveConfigNav(e)} onSelect={(e) => setActiveConfigNav(e)}
appearance="subtle" appearance="tabs"
> >
<StyledNavItem eventKey="listView">List-View</StyledNavItem> <StyledNavItem eventKey="listView">List-View</StyledNavItem>
<StyledNavItem eventKey="gridView">Grid-View</StyledNavItem> <StyledNavItem eventKey="gridView">Grid-View</StyledNavItem>
@ -224,7 +224,7 @@ const Layout = ({ footer, children, disableSidebar, font }: any) => {
</StyledPopover> </StyledPopover>
} }
trigger="click" trigger="click"
placement="autoVerticalEnd" placement="bottomEnd"
preventOverflow preventOverflow
> >
<StyledIconButton appearance="subtle" icon={<Icon icon="cog" />} /> <StyledIconButton appearance="subtle" icon={<Icon icon="cog" />} />

2
src/components/settings/Config.tsx

@ -164,7 +164,7 @@ const Config = () => {
</Whisper> </Whisper>
<Whisper <Whisper
trigger="hover" trigger="hover"
placement="auto" placement="bottomEnd"
enterable enterable
preventOverflow preventOverflow
speaker={ speaker={

2
src/components/viewtypes/ListViewType.tsx

@ -119,7 +119,7 @@ const ListViewType = (
const currentScrollY = Math.abs(tableRef?.current.scrollY); const currentScrollY = Math.abs(tableRef?.current.scrollY);
const currentScrollX = Math.abs(tableRef?.current.scrollX); const currentScrollX = Math.abs(tableRef?.current.scrollX);
if (dragDirection.match(/down|up/)) { if (dragDirection.match(/down|up/)) {
console.log(`currentScrollY + scrollDistance`, currentScrollY + scrollDistance); // console.log(`currentScrollY + scrollDistance`, currentScrollY + scrollDistance);
tableRef.current.scrollTop( tableRef.current.scrollTop(
dragDirection === 'down' dragDirection === 'down'
? currentScrollY + scrollDistance ? currentScrollY + scrollDistance

Loading…
Cancel
Save