@agentiffai/design 1.3.22 → 1.3.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3148,13 +3148,13 @@ var GlobalSidebarStyles2 = createGlobalStyle`
3148
3148
  width: calc(100% - 60px) !important;
3149
3149
  }
3150
3150
 
3151
- /* Shrink the sidebar container to only cover the right portion where dialog lives */
3152
- /* Also stretch to full height (remove default 8px padding) */
3151
+ /* Sidebar container covers right portion full height, no gaps */
3153
3152
  .copilotKitSidebar {
3154
3153
  top: 0 !important;
3155
3154
  bottom: 0 !important;
3156
- left: 58vw !important;
3157
- width: min(50vw, 22rem) !important;
3155
+ right: 0 !important;
3156
+ left: 50vw !important;
3157
+ width: auto !important;
3158
3158
  height: 100vh !important;
3159
3159
  }
3160
3160
 
@@ -3164,31 +3164,34 @@ var GlobalSidebarStyles2 = createGlobalStyle`
3164
3164
  }
3165
3165
 
3166
3166
  .copilotKitSidebar [role="dialog"] {
3167
- width: min(50vw, 20rem) !important;
3168
- max-width: min(50vw, 20rem) !important;
3167
+ width: min(50vw, 22rem) !important;
3168
+ max-width: min(50vw, 22rem) !important;
3169
3169
  left: auto !important;
3170
- right: 1.5rem !important;
3171
- /* Use top/bottom ONLY - let browser calculate height (more reliable than explicit height) */
3170
+ /* Flush with right edge — safe area handled via internal padding */
3171
+ right: 0 !important;
3172
+ /* Fill ALL vertical space — overlay the bottom nav for maximum chat area */
3173
+ /* Keep top safe area so dialog doesn't go behind status bar (battery/wifi) */
3172
3174
  top: var(--safe-area-top, 0px) !important;
3173
- bottom: calc(52px + var(--safe-area-bottom, 0px)) !important;
3174
- /* Remove explicit height - let top/bottom define it */
3175
+ bottom: 0 !important;
3176
+ /* Let top/bottom define height */
3175
3177
  height: auto !important;
3176
3178
  max-height: none !important;
3177
- /* Remove margins */
3178
3179
  margin: 0 !important;
3180
+ /* Only round the left edges since right is flush with viewport */
3179
3181
  border-radius: 0 !important;
3180
3182
  border-top-left-radius: ${tokens.borderRadius.xl} !important;
3181
3183
  border-bottom-left-radius: ${tokens.borderRadius.xl} !important;
3182
3184
  }
3183
3185
 
3184
3186
  /* Compact header in landscape - hide title text but keep close button */
3187
+ /* Safe area top padding applied here so content avoids status bar */
3185
3188
  .copilotKitSidebar [role="dialog"] header,
3186
3189
  .copilotKitSidebar [role="dialog"] [data-testid="chat-header"],
3187
3190
  .copilotKitSidebar [role="dialog"] > div:first-child {
3188
- padding: 0.25rem 0.5rem !important;
3191
+ padding: 0.25rem 0.5rem 0.25rem !important;
3189
3192
  min-height: auto !important;
3190
- height: 1.5rem;
3191
- padding-right: 1.5rem !important;
3193
+ height: auto !important;
3194
+ padding-right: calc(1.5rem + var(--safe-area-right, 0px)) !important;
3192
3195
  }
3193
3196
 
3194
3197
  /* Hide the title text but keep close button visible */
@@ -3201,9 +3204,9 @@ var GlobalSidebarStyles2 = createGlobalStyle`
3201
3204
  display: none !important;
3202
3205
  }
3203
3206
 
3204
- /* Reduce vertical padding inside chat to preserve space in landscape */
3207
+ /* Reduce vertical padding inside chat right safe area for notch */
3205
3208
  .copilotKitMessages {
3206
- padding: ${tokens.spacing.xs} ${tokens.spacing.sm} !important;
3209
+ padding: ${tokens.spacing.xs} calc(${tokens.spacing.sm} + var(--safe-area-right, 0px)) ${tokens.spacing.xs} ${tokens.spacing.sm} !important;
3207
3210
  }
3208
3211
 
3209
3212
  .copilotKitMessage {
@@ -3211,17 +3214,15 @@ var GlobalSidebarStyles2 = createGlobalStyle`
3211
3214
  margin: ${tokens.spacing.xs} 0 !important;
3212
3215
  }
3213
3216
 
3214
- /* Compact input area in landscape */
3215
- .copilotKitInput,
3216
- .copilotKitSidebar [role="dialog"] > div:last-child {
3217
- padding: ${tokens.spacing.xs} ${tokens.spacing.sm} !important;
3218
- }
3219
-
3220
3217
  /* Reduce gap between messages */
3221
3218
  .copilotKitMessages > div {
3222
3219
  gap: 0.25rem !important;
3223
3220
  padding-bottom: 0;
3224
- margin-bottom: -3rem;
3221
+ }
3222
+
3223
+ /* Compact input area — safe area padding for bottom gesture bar and right notch */
3224
+ .copilotKitInput {
3225
+ padding: ${tokens.spacing.xs} calc(${tokens.spacing.sm} + var(--safe-area-right, 0px)) calc(${tokens.spacing.xs} + var(--safe-area-bottom, 0px)) ${tokens.spacing.sm} !important;
3225
3226
  }
3226
3227
 
3227
3228
  /* Compact suggested prompts in landscape */
@@ -3232,9 +3233,9 @@ var GlobalSidebarStyles2 = createGlobalStyle`
3232
3233
  max-height: 32px !important;
3233
3234
  }
3234
3235
 
3235
- /* Compact parent of suggestions (input area) */
3236
+ /* Suggestions container safe area padding for bottom and right */
3236
3237
  .copilotKitSidebar [role="dialog"] > div:last-child {
3237
- padding: 1px !important;
3238
+ padding: 1px calc(1px + var(--safe-area-right, 0px)) calc(1px + var(--safe-area-bottom, 0px)) 1px !important;
3238
3239
  }
3239
3240
  }
3240
3241