8d2b9d2dab
* Secret manager (now for real) * Refactor secret manager dialog * Add error handling to secrets migration * Adjust default value * Add secret-id slash command * Add secret management slash commands * Improve type definitions * Improve compatibility of UUID generator * Add copy buttons to manager view * Improve compatibility with Vertex AI service account - Changed to input since textarea can't be used with datalist - Unblock regular key placeholder - Save email as a key label - Interrupt validation if the input is a UUID (autocompleted) * Add optional label input for secret values in key manager dialog * Update masking rules * /secret-id: make the arg "required" (it's not)
103 lines
1.8 KiB
CSS
103 lines
1.8 KiB
CSS
.secretKeyManager {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
height: 100%;
|
|
}
|
|
|
|
.secretKeyManagerHeader {
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 5px;
|
|
}
|
|
|
|
.secretKeyManagerSubtitle {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
width: 100%;
|
|
}
|
|
|
|
.secretKeyManagerInfo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: baseline;
|
|
flex: 1;
|
|
font-size: 0.95em;
|
|
}
|
|
|
|
.secretKeyManagerList {
|
|
display: flex;
|
|
flex-direction: column;
|
|
text-align: left;
|
|
gap: 5px;
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
height: 100%;
|
|
}
|
|
|
|
.secretKeyManagerItem {
|
|
border: 1px solid var(--SmartThemeBorderColor);
|
|
padding: 5px 10px;
|
|
border-radius: 10px;
|
|
background-color: var(--black30a);
|
|
display: flex;
|
|
flex-direction: row;
|
|
align-items: center;
|
|
}
|
|
|
|
.secretKeyManagerItem.active {
|
|
background-color: var(--cobalt30a);
|
|
}
|
|
|
|
.secretKeyManagerItemInfo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 1;
|
|
gap: 5px;
|
|
}
|
|
|
|
.secretKeyManagerItemSubtitle,
|
|
.secretKeyManagerItemHeader {
|
|
word-break: break-all;
|
|
}
|
|
|
|
.secretKeyManagerItemId {
|
|
text-decoration: underline;
|
|
text-decoration-style: dotted;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.secretKeyManagerItemActions {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
}
|
|
|
|
.secretKeyManagerItemActionsRow {
|
|
display: flex;
|
|
flex-direction: row;
|
|
gap: 5px;
|
|
}
|
|
|
|
.secretKeyManagerItemActionsRow>button {
|
|
margin: 0;
|
|
}
|
|
|
|
.secretKeyManagerList:empty {
|
|
display: none;
|
|
}
|
|
|
|
.secretKeyManagerListEmpty {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
width: 100%;
|
|
opacity: 0.8;
|
|
font-weight: bold;
|
|
font-size: 1.05em;
|
|
}
|