Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(atomic): add variable for collapsed rga height #4633

Open
wants to merge 7 commits into
base: v2
Choose a base branch
from
Open
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,17 +96,24 @@
}
}

/**
* @prop --atomic-crga-collapsed-height: The maximum height of the collapsed generated answer container.
*/
[part='generated-container'] {
&.answer-collapsed {
@apply relative max-h-64 overflow-hidden content-[''];
@apply relative overflow-hidden content-[''];
max-height: var(--atomic-crga-collapsed-height, 16rem);

.feedback-buttons {
@apply hidden;
}
}
&.answer-collapsed:before {
@apply absolute left-0 top-0 h-full w-full content-[''];
background: linear-gradient(transparent 11.25rem, var(--atomic-background));
background: linear-gradient(
transparent calc(var(--atomic-crga-collapsed-height, 16rem) * 0.7),
var(--atomic-background)
);
}
}

Expand Down
Loading