Skip to content

Commit

Permalink
Add min-width: 0 to cob content
Browse files Browse the repository at this point in the history
This allows content that shows a code block to shrink so title can wrap
on desktop.
  • Loading branch information
sebastinez committed Jan 11, 2024
1 parent 9a2f88a commit b3675c1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/views/projects/Issue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,14 @@
gap: 1.5rem;
width: 20rem;
}
.content {
display: flex;
flex: 1;
flex-direction: column;
gap: 1.5rem;
/* Resets auto default to shrink pre elements */
min-width: 0;
}
.threads {
display: flex;
Expand Down Expand Up @@ -449,7 +457,7 @@

<Layout {baseUrl} {project} activeTab="issues">
<div class="issue">
<div style="display: flex; flex: 1; flex-direction: column; gap: 1.5rem;">
<div class="content">
<CobHeader id={issue.id}>
<svelte:fragment slot="title">
{#if issueState !== "read"}
Expand Down
9 changes: 8 additions & 1 deletion src/views/projects/Patch.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,13 @@
height: fit-content;
width: 20rem;
}
.content {
display: flex;
flex: 1;
flex-direction: column;
/* Resets auto default to shrink pre elements */
min-width: 0;
}
.tabs {
display: flex;
margin: 3rem 0 1rem 0;
Expand Down Expand Up @@ -623,7 +630,7 @@

<Layout {baseUrl} {project} activeTab="patches">
<div class="patch">
<div style="display: flex; flex: 1; flex-direction: column;">
<div class="content">
<CobHeader id={patch.id}>
<svelte:fragment slot="title">
{#if patchState !== "read"}
Expand Down

0 comments on commit b3675c1

Please sign in to comment.