mirror of
https://github.com/logto-io/logto.git
synced 2025-03-10 22:22:45 -05:00
style(console): fix the jwt details page style (#5642)
* style(console): fix the jwt details page style fix the jwt details page style * fix(console): remove the unused style remove the unused style * fix(console): remove sticky position remove sticky position
This commit is contained in:
parent
3e51ab14ce
commit
a6a32c57fb
7 changed files with 16 additions and 24 deletions
|
@ -1,12 +1,10 @@
|
||||||
@use '@/scss/underscore' as _;
|
@use '@/scss/underscore' as _;
|
||||||
|
|
||||||
.scriptSection {
|
.scriptSection {
|
||||||
position: sticky;
|
position: relative;
|
||||||
top: 0;
|
|
||||||
min-width: 50%;
|
min-width: 50%;
|
||||||
|
|
||||||
.fixHeightWrapper {
|
.fixHeightWrapper {
|
||||||
margin-bottom: _.unit(3);
|
|
||||||
position: absolute;
|
position: absolute;
|
||||||
inset: 0;
|
inset: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
@ -23,8 +23,3 @@
|
||||||
.envVariablesField {
|
.envVariablesField {
|
||||||
margin-bottom: _.unit(4);
|
margin-bottom: _.unit(4);
|
||||||
}
|
}
|
||||||
|
|
||||||
.description {
|
|
||||||
font: var(--font-body-2);
|
|
||||||
color: var(--color-text-secondary);
|
|
||||||
}
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ function InstructionTab({ isActive }: Props) {
|
||||||
? accessTokenPayloadTypeDefinition
|
? accessTokenPayloadTypeDefinition
|
||||||
: clientCredentialsPayloadTypeDefinition
|
: clientCredentialsPayloadTypeDefinition
|
||||||
}
|
}
|
||||||
height="350px"
|
height="320px"
|
||||||
theme="logto-dark"
|
theme="logto-dark"
|
||||||
options={typeDefinitionCodeEditorOptions}
|
options={typeDefinitionCodeEditorOptions}
|
||||||
/>
|
/>
|
||||||
|
@ -70,7 +70,7 @@ function InstructionTab({ isActive }: Props) {
|
||||||
language="typescript"
|
language="typescript"
|
||||||
className={styles.sampleCode}
|
className={styles.sampleCode}
|
||||||
value={jwtCustomizerUserContextTypeDefinition}
|
value={jwtCustomizerUserContextTypeDefinition}
|
||||||
height="700px"
|
height="400px"
|
||||||
theme="logto-dark"
|
theme="logto-dark"
|
||||||
options={typeDefinitionCodeEditorOptions}
|
options={typeDefinitionCodeEditorOptions}
|
||||||
/>
|
/>
|
||||||
|
@ -83,7 +83,9 @@ function InstructionTab({ isActive }: Props) {
|
||||||
setExpendCard(expand ? CardType.FetchExternalData : undefined);
|
setExpendCard(expand ? CardType.FetchExternalData : undefined);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div className={styles.description}>{t('jwt_claims.fetch_external_data.description')}</div>
|
<div className={tabContentStyles.description}>
|
||||||
|
{t('jwt_claims.fetch_external_data.description')}
|
||||||
|
</div>
|
||||||
<Editor
|
<Editor
|
||||||
language="typescript"
|
language="typescript"
|
||||||
className={styles.sampleCode}
|
className={styles.sampleCode}
|
||||||
|
@ -101,7 +103,7 @@ function InstructionTab({ isActive }: Props) {
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<EnvironmentVariablesField className={styles.envVariablesField} />
|
<EnvironmentVariablesField className={styles.envVariablesField} />
|
||||||
<div className={styles.description}>
|
<div className={tabContentStyles.description}>
|
||||||
{t('jwt_claims.environment_variables.sample_code')}
|
{t('jwt_claims.environment_variables.sample_code')}
|
||||||
</div>
|
</div>
|
||||||
<Editor
|
<Editor
|
||||||
|
|
|
@ -3,3 +3,8 @@
|
||||||
.error {
|
.error {
|
||||||
color: var(--color-error);
|
color: var(--color-error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.codeEditor {
|
||||||
|
min-height: 400px;
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
|
|
|
@ -108,7 +108,7 @@ function TestTab({ isActive }: Props) {
|
||||||
}}
|
}}
|
||||||
render={({ field }) => (
|
render={({ field }) => (
|
||||||
<MonacoCodeEditor
|
<MonacoCodeEditor
|
||||||
className={tabContentStyles.flexGrow}
|
className={styles.codeEditor}
|
||||||
enabledActions={['restore', 'copy']}
|
enabledActions={['restore', 'copy']}
|
||||||
models={editorModels}
|
models={editorModels}
|
||||||
activeModelName={activeModelName}
|
activeModelName={activeModelName}
|
||||||
|
|
|
@ -4,14 +4,8 @@
|
||||||
.content {
|
.content {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-grow: 1;
|
flex: 1;
|
||||||
overflow: auto;
|
margin-bottom: _.unit(3);
|
||||||
scrollbar-width: none; /* For Firefox */
|
|
||||||
-ms-overflow-style: none; /* For Internet Explorer and Edge */
|
|
||||||
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none; /* For Chrome, Safari and Opera */
|
|
||||||
}
|
|
||||||
|
|
||||||
> * {
|
> * {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
@use '@/scss/underscore' as _;
|
@use '@/scss/underscore' as _;
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
position: relative;
|
||||||
flex-direction: column;
|
|
||||||
height: 100%;
|
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue