summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorzephyr <[email protected]>2023-06-25 10:54:08 +0800
committerzephyr <[email protected]>2023-06-25 10:54:08 +0800
commitfb724a16b86a5ef1d905577fd3e14126e7b8c842 (patch)
tree618a2902b252070ad56ab925b9e5b9045a050f89 /src/components
parente850ff2731763ece10433cb5d0f2814c0b03b35a (diff)
fix: sourceip table style for mobile
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Connections.module.scss9
-rw-r--r--src/components/Connections.tsx2
2 files changed, 10 insertions, 1 deletions
diff --git a/src/components/Connections.module.scss b/src/components/Connections.module.scss
index 163987d..ded8ce0 100644
--- a/src/components/Connections.module.scss
+++ b/src/components/Connections.module.scss
@@ -6,6 +6,7 @@
justify-content: center;
color: var(--color-background);
opacity: 0.1;
+
@media (max-width: 768px) {
margin-top: 35%;
}
@@ -33,6 +34,7 @@
* we need to apply some right padding to this container then
*/
padding-right: 15px;
+
@media (--breakpoint-not-small) {
padding-right: 25px;
}
@@ -40,6 +42,7 @@
.inputWrapper {
margin: 0;
+
@media (--breakpoint-not-small) {
margin: 0 25px;
}
@@ -73,3 +76,9 @@
flex-direction: row;
justify-content: space-evenly;
}
+
+.sourceipTable {
+ input {
+ width: 120px;
+ }
+}
diff --git a/src/components/Connections.tsx b/src/components/Connections.tsx
index 8c0ef1a..a0d0f37 100644
--- a/src/components/Connections.tsx
+++ b/src/components/Connections.tsx
@@ -284,7 +284,7 @@ function Conn({ apiConfig }) {
return (
<div>
<BaseModal isOpen={sourceMapModal} onRequestClose={closeModalSource}>
- <table>
+ <table className={s.sourceipTable}>
<thead>
<tr>
<th>{t('c_source')}</th>