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

2
src/components/settings/Config.tsx

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

2
src/components/viewtypes/ListViewType.tsx

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

Loading…
Cancel
Save