From 685b2c39e748a879cde15b57495bb9c1917a7082 Mon Sep 17 00:00:00 2001 From: al Date: Thu, 14 Nov 2024 17:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BA=E5=AE=9Ainput=E5=AD=97=E4=BD=93?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/globals.css | 128 ++++++++++-------- app/my/createProfile/page.jsx | 1 + app/my/editprofile/editHome/page.jsx | 2 + .../completeStreamerInformation/page.jsx | 2 + app/space/createImagePost/page.jsx | 4 +- app/space/createVideoPost/page.jsx | 4 +- app/space/editSpacePost/[zid]/page.jsx | 4 +- app/space/setting/[mid]/page.js | 19 ++- .../setting/spaceIntroSetting/[mid]/page.jsx | 11 +- app/streamerPosts/createPost/page.jsx | 22 ++- components/OwnInput/index.js | 4 +- 11 files changed, 116 insertions(+), 85 deletions(-) diff --git a/app/globals.css b/app/globals.css index 0f703f2..c7e774a 100644 --- a/app/globals.css +++ b/app/globals.css @@ -1,12 +1,12 @@ @tailwind base; @tailwind components; @tailwind utilities; -body{ - color:#fff; +body { + color: #fff; /* padding-bottom: constant(safe-area-inset-bottom); padding-bottom: env(safe-area-inset-bottom); */ } -footer{ +footer { /* Fallback for non-iOS devices */ bottom: 0; /* iOS 11.0+ */ @@ -35,7 +35,7 @@ footer{ -ms-user-select: none; /* IE/Edge */ user-select: none; /* 标准语法 */ } -img{ +img { pointer-events: none; } input { @@ -57,11 +57,19 @@ input { font-family: inherit; font-size: inherit; color: inherit; + +} +input,textarea{ + -webkit-user-select: auto; /* Safari */ + -moz-user-select: auto; /* Firefox */ + -ms-user-select: auto; /* IE/Edge */ + user-select: auto; /* 标准语法 */ } - @media only screen and (min-device-width: 320px) and (max-device-width: 1024px) { - select:focus, textarea:focus, input:focus { - font-size: 16px !important; + select:focus, + textarea:focus, + input:focus { + font-size: 16px !important; } } /* .adm-image-viewer-slides-inner > *{ @@ -102,7 +110,7 @@ input { .adm-list-body-inner { /* margin-top: 8px; */ } -.adm-image-viewer-indicator{ +.adm-image-viewer-indicator { color: #fff; } @@ -138,23 +146,24 @@ input { scroll-behavior: smooth; } -.scrollbarBoxX::-webkit-scrollbar, .scrollbarBox::-webkit-scrollbar { +.scrollbarBoxX::-webkit-scrollbar, +.scrollbarBox::-webkit-scrollbar { /* display:none; */ width: 6px; } -.scrollbarBoxX::-webkit-scrollbar-thumb,.scrollbarBox::-webkit-scrollbar-thumb { +.scrollbarBoxX::-webkit-scrollbar-thumb, +.scrollbarBox::-webkit-scrollbar-thumb { border-radius: 10px; -webkit-box-shadow: inset 0 0 5px rgba(138, 138, 138, 0.2); background: nb-theme(background-basic-color-4); - } -.scrollbarBoxX::-webkit-scrollbar-track,.scrollbarBox::-webkit-scrollbar-track { +.scrollbarBoxX::-webkit-scrollbar-track, +.scrollbarBox::-webkit-scrollbar-track { -webkit-box-shadow: inset 0 0 5px rgba(138, 138, 138, 0.2); border-radius: 10px; background: nb-theme(background-basic-color-2); - ; } .scrollbarBox_hidden { @@ -178,7 +187,6 @@ input { white-space: nowrap; } - .imageBlur { filter: blur(8px); } @@ -211,62 +219,62 @@ input { bottom: -4px; } -.adm-floating-panel{ - --border-radius:16px !important; +.adm-floating-panel { + --border-radius: 16px !important; } -.adm-jumbo-tabs-tab-active{ - color:#fff!important; +.adm-jumbo-tabs-tab-active { + color: #fff !important; /* font-weight: bold; */ } -.adm-jumbo-tabs-tab-description{ +.adm-jumbo-tabs-tab-description { background: none; - width: 100%!important; + width: 100% !important; } -.adm-jumbo-tabs-header{ +.adm-jumbo-tabs-header { position: sticky; top: 0; z-index: 10; - background-color: #07050A; + background-color: #07050a; color: #ffffff88; } -.spaceBoxTwo .adm-jumbo-tabs-header .adm-jumbo-tabs-tab-list{ +.spaceBoxTwo .adm-jumbo-tabs-header .adm-jumbo-tabs-tab-list { display: grid; grid-template-columns: repeat(2, 1fr); } -.spaceBoxThree .adm-jumbo-tabs-header .adm-jumbo-tabs-tab-list{ +.spaceBoxThree .adm-jumbo-tabs-header .adm-jumbo-tabs-tab-list { display: grid; grid-template-columns: repeat(3, 1fr); } -.adm-floating-panel-header{ - background-color: #07050A!important; +.adm-floating-panel-header { + background-color: #07050a !important; } -.adm-floating-panel-header .adm-floating-panel-bar{ - background-color: #ffffff!important; - width: 30px!important; +.adm-floating-panel-header .adm-floating-panel-bar { + background-color: #ffffff !important; + width: 30px !important; } -.adm-tab-bar .adm-tab-bar-item-icon{ - height:32px; +.adm-tab-bar .adm-tab-bar-item-icon { + height: 32px; } -.adm-image-viewer-slides .adm-image-viewer-slide{ +.adm-image-viewer-slides .adm-image-viewer-slide { /* margin-right: 0; */ } -.videoMask{ +.videoMask { display: none; } -.adm-dialog .adm-center-popup-wrap{ +.adm-dialog .adm-center-popup-wrap { top: 0; - left: 0; - transform: none; - max-width: none; - width: 100%; - height: 100%; + left: 0; + transform: none; + max-width: none; + width: 100%; + height: 100%; } -.adm-dialog .adm-dialog-content{ +.adm-dialog .adm-dialog-content { max-height: none; height: 100%; } -.adm-toast-icon{ +.adm-toast-icon { display: flex; justify-content: center; align-items: center; @@ -275,26 +283,26 @@ input { .adm-floating-panel .adm-floating-panel-content { flex: 1; overflow-y: scroll; - background: rgb(7 5 10/ var(--tw-bg-opacity))!important; + background: rgb(7 5 10 / var(--tw-bg-opacity)) !important; } -.adm-list>div>div>div>div{ +.adm-list > div > div > div > div { padding: 0; } -.adm-list-item-content{ +.adm-list-item-content { padding: 0; } -.customize-body img{ +.customize-body img { max-height: 90vh; filter: blur(8px); } -.customize-body>div>div{ +.customize-body > div > div { display: flex; justify-content: center; align-items: center; } -.customize-body>div>div>div{ +.customize-body > div > div > div { transform: matrix(1, 0, 0, 1, 0, 0); overflow: hidden; height: max-content; @@ -313,44 +321,44 @@ input { width: max-content; border-radius: 0.25rem; } */ -.mediaDom .adm-image-viewer-slides-inner{ +.mediaDom .adm-image-viewer-slides-inner { padding-top: 68px; } -.mediaDom .adm-image-viewer-slide{ +.mediaDom .adm-image-viewer-slide { max-height: calc(100vh - 100px); width: 100vw; - } -.photos-body img{ +.photos-body img { /* max-height: 90vh; */ filter: blur(8px); } -.photos-body .adm-image-viewer-control{ +.photos-body .adm-image-viewer-control { display: flex; justify-content: center; align-items: center; } -.photos-body .adm-image-viewer-image-wrapper{ +.photos-body .adm-image-viewer-image-wrapper { overflow: hidden; height: max-content; width: max-content; border-radius: 0.25rem; } -.photos-bodyBox-full{ +.photos-bodyBox-full { width: 100vw; max-height: calc(100vh); } -.photos-bodyBox{ +.photos-bodyBox { width: 100vw; max-height: calc(100vh - 120px); } -.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon,.adm-radio.adm-radio-checked .adm-radio-icon { - border-color: #FF669E!important; - background-color: #FF669E!important; +.adm-checkbox.adm-checkbox-checked .adm-checkbox-icon, +.adm-radio.adm-radio-checked .adm-radio-icon { + border-color: #ff669e !important; + background-color: #ff669e !important; } -.adm-modal .adm-modal-content{ +.adm-modal .adm-modal-content { max-height: 100vh; -} \ No newline at end of file +} diff --git a/app/my/createProfile/page.jsx b/app/my/createProfile/page.jsx index b9cca2b..6375842 100644 --- a/app/my/createProfile/page.jsx +++ b/app/my/createProfile/page.jsx @@ -374,6 +374,7 @@ export default function CreateProfile() {