Skip to content

Commit

Permalink
More overflow fixes for p and li
Browse files Browse the repository at this point in the history
  • Loading branch information
rimutaka committed Oct 22, 2024
1 parent 3d3247d commit e6fd722
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions vue/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bite-sized learning</title>
<script type="module" crossorigin src="/assets/index-CjOgxa7j.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BTtm_E-T.css">
<script type="module" crossorigin src="/assets/index-BS--fOMk.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-COG5zYle.css">
</head>
<body>
<div id="app"></div>
Expand Down
10 changes: 6 additions & 4 deletions vue/src/assets/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ footer a {
@apply text-left w-full;
}

.q-card p {
max-width: 90vw; /* Chrome doesn't break up long URLs creating an overflow on small screens */
@apply break-words md:max-w-none;
.q-card p, .q-card li {
/* Chrome doesn't break up long URLs creating an overflow on small screens */
overflow-wrap: anywhere;
max-width: 95vw;
@apply md:max-w-none;
}

.q-card .q-text {
Expand Down Expand Up @@ -111,7 +113,7 @@ footer a {

.q-card ul,
.md-rendered ul {
@apply ps-2 list-disc list-inside mb-4;
@apply list-disc list-inside mb-4;
}

.md-rendered ul.markdown-prompt {
Expand Down

0 comments on commit e6fd722

Please sign in to comment.