Skip to content

Commit

Permalink
problem: layout not good
Browse files Browse the repository at this point in the history
  • Loading branch information
gsovereignty committed Jan 15, 2024
1 parent 6a06cdc commit 735a6b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/problems/ChatLayoutProblemHome.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
Tile
} from "carbon-components-svelte";
import {
Category,
Chat,
ChevronDown,
Forum,
Expand Down Expand Up @@ -116,7 +117,7 @@
><div bind:clientHeight={height}>
<Tile style="min-height:130px;clear:both;overflow:auto;">
<h4 style="font-style: italic;">
{selected.Children.size} SUB-PROBLEMS
<Tag type="purple" interactive icon={Category}>{selected.Children.size}</Tag> SUB-PROBLEMS
</h4>
<Tile>
<TextInput
Expand All @@ -140,11 +141,11 @@
<span style="font-weight:300;line-height:18px">{c.Title}</span>
</Tile>
{/each}
{#if selected.Children.size > 3}<Button style="display:flexbox;float:right;clear:both;" icon={Maximize} kind="ghost">VIEW ALL</Button>{/if}
<!-- {#if selected.Children.size > 3}<Button style="display:flexbox;float:right;clear:both;" icon={Maximize} kind="ghost">VIEW ALL</Button>{/if} -->
</Tile>

<Tile style="margin-top:10px;max-height:300px;overflow:hidden;display:{selected.NumberOfComments > 0?"block":"none"}">
<h4>DISCUSSION</h4>
<h4><Tag type="purple" interactive icon={Chat}>{selected.NumberOfComments}</Tag>DISCUSSION</h4>
<CommentsWrapper
problem={selected}
parentId={selected.UID}
Expand All @@ -153,7 +154,6 @@
bind:numberOfComments={selected.NumberOfComments}
onlyOne
/>
<Button style="float:right;" icon={Maximize} kind="ghost">VIEW ALL</Button>
</Tile>
</div>
<!-- <Tile style="margin-top:10px;max-height:108px;overflow:hidden;"
Expand Down

0 comments on commit 735a6b9

Please sign in to comment.