Skip to content

Commit

Permalink
Rename generated-ai-commit-message-modal to generated-ai-modal
Browse files Browse the repository at this point in the history
Summary: Rename `generated-ai-commit-message-modal` to `generated-ai-modal` to reuse styles for the future test plan suggestion feature

Reviewed By: mattpaynemeta, evangrayk

Differential Revision: D63334371

fbshipit-source-id: 0cead77821b459108940206f0ce1a3cc12f6c200
  • Loading branch information
Picowchew authored and facebook-github-bot committed Sep 24, 2024
1 parent 545e735 commit 831dbd2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions addons/isl/src/CommitInfoView/GenerateWithAI.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* LICENSE file in the root directory of this source tree.
*/

.generated-ai-commit-message-modal {
.generated-ai-modal {
display: flex;
flex-direction: column;
gap: var(--pad);
Expand All @@ -15,28 +15,28 @@
padding: var(--pad);
}

.generated-ai-commit-message-modal vscode-text-area,
.generated-ai-commit-message-modal .error-notice {
.generated-ai-modal vscode-text-area,
.generated-ai-modal .error-notice {
position: relative;
height: 100%;
flex-grow: 1;
margin: 2px;
overflow-y: scroll;
}

.generated-ai-commit-message-modal vscode-text-area {
.generated-ai-modal vscode-text-area {
-ms-overflow-style: none;
scrollbar-width: none;
}
.generated-ai-commit-message-modal vscode-text-area::-webkit-scrollbar {
.generated-ai-modal vscode-text-area::-webkit-scrollbar {
display: none;
}

.generated-ai-commit-message-modal vscode-text-area {
.generated-ai-modal vscode-text-area {
width: 100%;
}

.generated-ai-commit-message-modal vscode-text-area::part(control) {
.generated-ai-modal vscode-text-area::part(control) {
border: unset;
width: calc(100% - 4px);
height: calc(100% - 4px);
Expand Down
2 changes: 1 addition & 1 deletion addons/isl/src/CommitInfoView/GenerateWithAI.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ function GenerateAICommitMessageModal({
);

return (
<div className="generated-ai-commit-message-modal">
<div className="generated-ai-modal">
<Button icon className="dismiss-modal" onClick={dismiss}>
<Icon icon="x" />
</Button>
Expand Down

0 comments on commit 831dbd2

Please sign in to comment.