-
);
diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionSort/SessionSort.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionSort/SessionSort.tsx
index fe5e9c208..dfd61350a 100644
--- a/frontend/app/components/shared/SessionsTabOverview/components/SessionSort/SessionSort.tsx
+++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionSort/SessionSort.tsx
@@ -63,12 +63,14 @@ function SessionSort() {
const defaultOption = `${sort}-${order}`;
return (
-
+
+
+
);
}
diff --git a/frontend/app/components/shared/SessionsTabOverview/components/SessionTags/SessionTags.tsx b/frontend/app/components/shared/SessionsTabOverview/components/SessionTags/SessionTags.tsx
index c7e733e3e..d22000d64 100644
--- a/frontend/app/components/shared/SessionsTabOverview/components/SessionTags/SessionTags.tsx
+++ b/frontend/app/components/shared/SessionsTabOverview/components/SessionTags/SessionTags.tsx
@@ -1,11 +1,13 @@
import { issues_types, types } from 'Types/session/issue';
-import { Segmented } from 'antd';
+import { Grid, Segmented } from 'antd';
import { Angry, CircleAlert, Skull, WifiOff, ChevronDown } from 'lucide-react';
import { observer } from 'mobx-react-lite';
import React, { useState, useEffect, useRef } from 'react';
import { useStore } from 'App/mstore';
import { useTranslation } from 'react-i18next';
+const { useBreakpoint } = Grid;
+
const tagIcons = {
[types.ALL]: undefined,
[types.JS_EXCEPTION]:
,
@@ -17,6 +19,7 @@ const tagIcons = {
function SessionTags() {
const { t } = useTranslation();
+ const screens = useBreakpoint();
const { projectsStore, sessionStore, searchStore } = useStore();
const total = sessionStore.total;
const platform = projectsStore.active?.platform || '';
@@ -87,51 +90,25 @@ function SessionTags() {
return (
- {isMobile ? (
-
-
-
- {isDropdownOpen && (
-
- {filteredOptions.map((option) => (
-
handleSelectOption(option.value)}
- >
- {option.icon && {option.icon}}
- {option.label}
-
- ))}
-
- )}
-
- ) : (
-
searchStore.toggleTag(value as any)}
- size={'small'}
- />
- )}
+
+ tag.type !== 'mouse_thrashing' &&
+ (platform === 'web'
+ ? tag.type !== types.TAP_RAGE
+ : tag.type !== types.CLICK_RAGE),
+ )
+ .map((tag: any) => ({
+ value: tag.type,
+ icon: tagIcons[tag.type],
+ label: t(tag.name),
+ }))}
+ value={activeTab[0]}
+ onChange={(value: any) => searchStore.toggleTag(value)}
+ size="small"
+ />
);
}
diff --git a/frontend/app/layout/Layout.tsx b/frontend/app/layout/Layout.tsx
index acbc2d035..b6058b5a4 100644
--- a/frontend/app/layout/Layout.tsx
+++ b/frontend/app/layout/Layout.tsx
@@ -23,7 +23,7 @@ function Layout(props: Props) {
useEffect(() => {
const handleResize = () => {
- const isMobile = window.innerWidth < 1200;
+ const isMobile = window.innerWidth < 1280;
if (isMobile) {
setCollapsed(true);
} else {
diff --git a/frontend/app/layout/TopHeader.tsx b/frontend/app/layout/TopHeader.tsx
index 2872fe8d2..07a41bd28 100644
--- a/frontend/app/layout/TopHeader.tsx
+++ b/frontend/app/layout/TopHeader.tsx
@@ -48,7 +48,7 @@ function TopHeader() {
settingsStore.updateMenuCollapsed(!settingsStore.menuCollapsed);
}}
style={{ paddingTop: '4px' }}
- className="cursor-pointer"
+ className="cursor-pointer xl:block hidden"
>
{
})
module.exports = {
- content: [
- './app/**/*.tsx',
- './app/**/*.js'
- ],
+ mode: 'jit',
+ content: ['./app/**/*.tsx', './app/**/*.js'],
theme: {
colors: {
...defaultColors,
- ...colors
+ ...colors,
},
extend: {
keyframes: {
'fade-in': {
'0%': {
- opacity: '0'
+ opacity: '0',
// transform: 'translateY(-10px)'
},
'100%': {
- opacity: '1'
+ opacity: '1',
// transform: 'translateY(0)'
- }
+ },
},
'bg-spin': {
'0%': {
@@ -37,31 +35,31 @@ module.exports = {
},
'100%': {
backgroundPosition: '0 50%',
- }
- }
+ },
+ },
},
animation: {
'fade-in': 'fade-in 0.2s ease-out',
- 'bg-spin': 'bg-spin 1s ease infinite'
+ 'bg-spin': 'bg-spin 1s ease infinite',
},
colors: {
- 'disabled-text': 'rgba(0,0,0, 0.38)'
+ 'disabled-text': 'rgba(0,0,0, 0.38)',
},
boxShadow: {
'border-blue': `0 0 0 1px ${colors['active-blue-border']}`,
'border-main': `0 0 0 1px ${colors['main']}`,
- 'border-gray': '0 0 0 1px #999'
+ 'border-gray': '0 0 0 1px #999',
},
button: {
- 'background-color': 'red'
- }
- }
+ 'background-color': 'red',
+ },
+ },
},
variants: {
- visibility: ['responsive', 'hover', 'focus', 'group-hover']
+ visibility: ['responsive', 'hover', 'focus', 'group-hover'],
},
plugins: [],
corePlugins: {
- preflight: false
- }
+ preflight: false,
+ },
};