Skip to content

Commit

Permalink
Polishing animation for preview reset and text Area for instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
édouard wautier authored and édouard wautier committed Mar 7, 2024
1 parent ba506d0 commit e40e453
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion front/components/assistant_builder/AssistantBuilder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ export default function AssistantBuilder({
rightPanel={
<div
className={classNames(
"flex h-full w-full rounded-xl bg-slate-100 transition-all ease-in-out",
"flex h-full w-full rounded-xl border border-structure-100 bg-structure-50 transition-all",
shouldAnimatePreviewDrawer &&
previewDrawerOpenedAt != null &&
// Only animate the reload if the drawer has been open for at least 1 second.
Expand Down
6 changes: 3 additions & 3 deletions front/components/assistant_builder/InstructionScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ function AssistantBuilderTextArea({
name="name"
id={name}
className={classNames(
"block min-h-60 w-full min-w-0 rounded-md text-sm",
"block min-h-60 w-full min-w-0 rounded-xl text-sm transition-all duration-200",
!error
? "border-gray-300 focus:border-action-500 focus:ring-action-500"
? "border-structure-100 focus:border-action-300 focus:ring-action-300"
: "border-red-500 focus:border-red-500 focus:ring-red-500",
"bg-structure-50 stroke-structure-50",
"border-structure-200 bg-structure-50",
"resize-y"
)}
placeholder={placeholder}
Expand Down
9 changes: 4 additions & 5 deletions front/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,16 @@ module.exports = {
opacity: 0,
},
},

reload: {
"0%, 100%": {
transform: "scale(1)",
opacity: "1",
filter: "blur(0px)",
},
"50%": {
transform: "scale(0.2)",
opacity: "0.0",
filter: "blur(4px)",
transform: "scale(0.98)",
opacity: "0.8",
filter: "blur(8px)",
},
},
},
Expand All @@ -127,7 +126,7 @@ module.exports = {
breathing: "breathing 4s infinite ease-in-out",
"cursor-blink": "cursor-blink 0.9s infinite;",
shake: "shake 0.82s cubic-bezier(.36,.07,.19,.97) both",
reload: "reload 500ms ease-in-out",
reload: "reload 1000ms ease-out",
},
colors: {
brand: {
Expand Down

0 comments on commit e40e453

Please sign in to comment.