-
{service.name} :{service.port}
+
+
+ {service.name}
+
+
+ :{service.port}
+
+
Status: {service.status}
{isMedium?null:
}
diff --git a/frontend/src/components/RegexView/index.module.scss b/frontend/src/components/RegexView/index.module.scss
index 3d86dac..c3e016f 100644
--- a/frontend/src/components/RegexView/index.module.scss
+++ b/frontend/src/components/RegexView/index.module.scss
@@ -6,9 +6,20 @@
margin:5px;
}
-.regex_text{
- padding: 6px;
- background-color: $third_color;
+.outer_regex_text{
border-radius: 8px;
+ overflow: hidden;
margin: 6px;
+}
+
+.regex_text{
+ padding: 10px;
+ background-color: $third_color;
+ overflow-x: hidden;
+ border-radius: 8px;
+}
+
+.regex_text:hover{
+ overflow-x: auto;
+ opacity: 0.8;
}
\ No newline at end of file
diff --git a/frontend/src/components/RegexView/index.tsx b/frontend/src/components/RegexView/index.tsx
index f027360..877cbfc 100644
--- a/frontend/src/components/RegexView/index.tsx
+++ b/frontend/src/components/RegexView/index.tsx
@@ -1,4 +1,4 @@
-import { Grid, Text, Title, Badge, Space, ActionIcon, Tooltip } from '@mantine/core';
+import { Grid, Text, Title, Badge, Space, ActionIcon, Tooltip, Box } from '@mantine/core';
import { useState } from 'react';
import { RegexFilter } from '../../js/models';
import { b64decode, errorNotify, getapiobject, okNotify } from '../../js/utils';
@@ -7,6 +7,7 @@ import { BsTrashFill } from "react-icons/bs"
import YesNoModal from '../YesNoModal';
import FilterTypeSelector from '../FilterTypeSelector';
import { FaPause, FaPlay } from 'react-icons/fa';
+import { useClipboard } from '@mantine/hooks';
function RegexView({ regexInfo }:{ regexInfo:RegexFilter }) {
@@ -20,6 +21,7 @@ function RegexView({ regexInfo }:{ regexInfo:RegexFilter }) {
const [deleteModal, setDeleteModal] = useState(false);
const [deleteTooltipOpened, setDeleteTooltipOpened] = useState(false);
const [statusTooltipOpened, setStatusTooltipOpened] = useState(false);
+ const clipboard = useClipboard({ timeout: 500 });
const deleteRegex = () => {
getapiobject().regexdelete(regexInfo.id).then(res => {
@@ -47,7 +49,12 @@ function RegexView({ regexInfo }:{ regexInfo:RegexFilter }) {