Skip to content

Commit

Permalink
fix readable width
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Oct 28, 2024
1 parent 359a709 commit e936ce3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/css/unison-share/page/code-page.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
.code-page {
/* increase the readable-column-width-medium size to account for extra gutter
* space added by the fold toggle */
--readable-column-width-medium: calc(var(--readable-column-width-medium) + 2rem);
* space added by the fold toggle
*
* unfortunately it doesn't look like we can define css variable based off of
* itself, so we're going its 45rem here because
--readable-column-width-medium originally is 43 and we're adding 2rem;
* */
--readable-column-width-medium_original: 43rem;
--readable-column-width-medium: calc(var(--readable-column-width-medium_original) + 2rem);
}

.code-page .sidebar .namespace-header {
Expand Down

0 comments on commit e936ce3

Please sign in to comment.