Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into cs-6654-paginate-sear…
Browse files Browse the repository at this point in the history
…ch-results
  • Loading branch information
habdelra committed Apr 8, 2024
2 parents deb33dc + 3bedc51 commit 6573dc6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ export default class ResizablePanelGroup extends Component<Signature> {
unregisterPanel(id: number) {
this.listPanelContext.delete(id);
this.calculatePanelRatio();
this.onContainerResize();
}

calculatePanelRatio() {
Expand Down
13 changes: 12 additions & 1 deletion packages/host/app/components/card-pill.gts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export default class CardPill extends Component<CardPillSignature> {
</RealmInfoProvider>
</:icon>
<:default>
<this.component @displayContainer={{false}} />
<div class='card-content' title={{@card.title}}>
<this.component @displayContainer={{false}} />
</div>
{{#if @removeCard}}
<IconButton
class='remove-button'
Expand Down Expand Up @@ -86,6 +88,15 @@ export default class CardPill extends Component<CardPillSignature> {
.is-autoattached {
border-style: dashed;
}
.card-content {
display: flex;
max-width: 100px;
}
:deep(.atom-format) {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
</style>
</template>
}
13 changes: 7 additions & 6 deletions packages/host/app/components/operator-mode/code-submode.gts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,15 @@ type PanelHeights = {
type SelectedAccordionItem = 'schema-editor' | null;

const CodeModePanelWidths = 'code-mode-panel-widths';
const defaultLeftPanelWidth =
(14.0 * parseFloat(getComputedStyle(document.documentElement).fontSize)) /
(document.documentElement.clientWidth - 40 - 36);
const defaultPanelWidths: PanelWidths = {
// 14rem as a fraction of the layout width
leftPanel:
(14.0 * parseFloat(getComputedStyle(document.documentElement).fontSize)) /
(document.documentElement.clientWidth - 40 - 36),
codeEditorPanel: 0.4,
rightPanel: 0.4,
emptyCodeModePanel: 0.8,
leftPanel: defaultLeftPanelWidth,
codeEditorPanel: (1 - defaultLeftPanelWidth) / 2,
rightPanel: (1 - defaultLeftPanelWidth) / 2,
emptyCodeModePanel: 1 - defaultLeftPanelWidth,
};

const CodeModePanelHeights = 'code-mode-panel-heights';
Expand Down

0 comments on commit 6573dc6

Please sign in to comment.