Skip to content
This repository was archived by the owner on Jul 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all 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 @@ -16,7 +16,7 @@ export default RouteTemplate(
@value={{@controller.selectedPersona}}
@valueProperty="username"
@content={{@controller.personaOptions}}
@options={{hash icon="robot" [email protected]}}
@options={{hash icon="angle-down"}}
@onChange={{@controller.selectedPersonaChanged}}
/>
</div>
Expand Down
115 changes: 32 additions & 83 deletions assets/stylesheets/modules/ai-bot-conversations/common.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@use "lib/viewport";

// Hide the new question button from the hamburger menu's footer
.hamburger-panel .ai-new-question-button {
display: none;
Expand All @@ -9,10 +11,6 @@ body.has-ai-conversations-sidebar {
}

.sidebar-wrapper {
.sidebar-container {
border: none;
}

.ai-conversations-panel {
padding-top: 0;
}
Expand Down Expand Up @@ -66,7 +64,6 @@ body.has-ai-conversations-sidebar {
.topic-header-participants,
.topic-above-footer-buttons-outlet,
.topic-map,
.timeline-ago,
#topic-footer-buttons .topic-footer-main-buttons details {
display: none;
}
Expand Down Expand Up @@ -114,34 +111,26 @@ body.has-ai-conversations-sidebar {
width: calc(100% - 6.5em);
margin-top: 0;

@media screen and (max-width: 924px) {
@include viewport.until(md) {
max-width: unset;
width: 100%;
}

@media screen and (min-width: 1300px) {
@include viewport.from(xl) {
width: 100%;
max-width: 51em;
}

.topic-footer-main-buttons {
justify-content: flex-end;

@media screen and (min-width: 1180px) {
margin-right: 0.6em;
}

@media screen and (max-width: 924px) {
margin-right: 0.6em;
}
}
}

#topic-progress-wrapper.docked {
display: none;
}

@media screen and (max-width: 924px) {
@include viewport.until(lg) {
.archetype-private_message .topic-post:last-child {
margin-bottom: 0;
}
Expand All @@ -164,16 +153,25 @@ body.has-ai-conversations-sidebar {
.ai-bot-conversations {
height: calc(100dvh - var(--header-offset) - 1.25em);

@media screen and (min-width: 675px) {
border: 1px solid var(--primary-low);
padding: 2em 2em 3em;
border-radius: var(--border-radius);
height: calc(100dvh - var(--header-offset) - 10em);
}

&__persona-selector {
display: flex;
justify-content: flex-end;
justify-content: flex-start;
}

&__persona-selector .btn {
background-color: transparent;
font-weight: bold;
}

&__persona-selector .btn:hover,
&__persona-selector .btn:focus {
background-color: transparent;
color: var(--primary);
}

&__persona-selector .btn:hover .d-icon,
&__persona-selector .btn:focus .d-icon {
color: var(--primary);
}

&__content-wrapper {
Expand All @@ -182,18 +180,20 @@ body.has-ai-conversations-sidebar {
box-sizing: border-box;
align-items: center;
justify-content: center;
height: 100%;
height: calc(90% - 1.25em - var(--header-offset));

@include viewport.until(sm) {
height: calc(75% - 1.25em - var(--header-offset) - 2em);
}
}

&__input-wrapper {
display: flex;
align-items: stretch;
gap: 0.5em;
width: 100%;
max-width: 90dvw;
margin-top: 2em;

@media screen and (min-width: 600px) {
@include viewport.from(sm) {
width: 80%;
max-width: 46em;
}
Expand All @@ -217,32 +217,12 @@ body.has-ai-conversations-sidebar {
}
}

h1 {
margin-bottom: 0.45em;
max-width: 20em;
text-align: center;
font-size: var(--font-up-6);
line-height: var(--line-height-medium);

@media screen and (min-height: 300px) {
margin-top: -1em;
}

@media screen and (min-height: 600px) {
margin-top: -3em;
}

@media screen and (min-height: 900px) {
margin-top: -6em;
}
}

.ai-disclaimer {
text-align: center;
font-size: var(--font-down-1);
color: var(--primary-700);

@media screen and (min-width: 600px) {
@include viewport.from(sm) {
width: 80%;
max-width: 46em;
}
Expand All @@ -259,30 +239,13 @@ body.has-ai-conversations-sidebar {
display: none;
}
}
}

// composer
.reply-details .dropdown-select-box.composer-actions,
.composer-fields {
display: none;
}

// hide user stuff
.new-user-wrapper {
.user-navigation {
display: none;
.topic-footer-main-buttons {
justify-content: flex-end;
}
}

.user-main .about.collapsed-info .details {
display: none;
}

.user-content {
margin-top: 0;
}

@media screen and (max-width: 600px) {
@include viewport.until(sm) {
.share-ai-conversation-button {
.d-icon {
margin: 0;
Expand All @@ -294,20 +257,6 @@ body.has-ai-conversations-sidebar {
}
}

.mobile-view {
nav.post-controls .actions button.reply .d-icon {
margin: 0;
}

.search-dropdown {
display: none;
}

.sidebar-custom-sections {
display: none;
}
}

// custom user card link
.user-card-meta__profile-link {
display: block;
Expand Down