🐛 Fix HTML table not full width on desktop

Fixes: #826
pull/805/merge
James Panther 2024-03-09 15:26:31 +11:00
parent fd49282446
commit 088c913f67
No known key found for this signature in database
GPG Key ID: D36F789E45745D17
3 changed files with 33 additions and 8 deletions

View File

@ -16,6 +16,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
- `x-twitter` option missing when using sharing links ([#809](https://github.com/jpanther/congo/issues/809)) - `x-twitter` option missing when using sharing links ([#809](https://github.com/jpanther/congo/issues/809))
- Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807)) - Chinese default config contains incorrect `author` block name ([#807](https://github.com/jpanther/congo/pull/807))
- Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813)) - Links in articles are prefixed with a blank space ([#813](https://github.com/jpanther/congo/pull/813))
- HTML tables would not fill the container width on desktop ([#826](https://github.com/jpanther/congo/issues/826))
## [2.8.0] - 2024-01-22 ## [2.8.0] - 2024-01-22

View File

@ -1254,13 +1254,18 @@ table {
overflow: auto; overflow: auto;
} }
@media (min-width: 768px) {
table {
display: table;
}
}
/* Fix long inline code sections breaking out of article on mobile */ /* Fix long inline code sections breaking out of article on mobile */
code { code {
word-wrap: break-word; word-wrap: break-word;
/* All browsers since IE 5.5+ */ /* All browsers since IE 5.5+ */
overflow-wrap: break-word; overflow-wrap: break-word;
/* Renamed property in CSS3 draft spec */
} }
/* -- Chroma Highlight -- */ /* -- Chroma Highlight -- */
@ -2216,10 +2221,6 @@ code {
border-width: 1px; border-width: 1px;
} }
.border-s {
border-inline-start-width: 1px;
}
.border-t { .border-t {
border-top-width: 1px; border-top-width: 1px;
} }
@ -3092,6 +3093,10 @@ code {
right: 0px; right: 0px;
} }
.ltr\:-ml-5:where([dir="ltr"], [dir="ltr"] *) {
margin-left: -1.25rem;
}
.ltr\:block:where([dir="ltr"], [dir="ltr"] *) { .ltr\:block:where([dir="ltr"], [dir="ltr"] *) {
display: block; display: block;
} }
@ -3104,10 +3109,22 @@ code {
display: none; display: none;
} }
.ltr\:border-l:where([dir="ltr"], [dir="ltr"] *) {
border-left-width: 1px;
}
.ltr\:pl-5:where([dir="ltr"], [dir="ltr"] *) {
padding-left: 1.25rem;
}
.rtl\:left-0:where([dir="rtl"], [dir="rtl"] *) { .rtl\:left-0:where([dir="rtl"], [dir="rtl"] *) {
left: 0px; left: 0px;
} }
.rtl\:-mr-5:where([dir="rtl"], [dir="rtl"] *) {
margin-right: -1.25rem;
}
.rtl\:block:where([dir="rtl"], [dir="rtl"] *) { .rtl\:block:where([dir="rtl"], [dir="rtl"] *) {
display: block; display: block;
} }
@ -3120,6 +3137,14 @@ code {
display: none; display: none;
} }
.rtl\:border-r:where([dir="rtl"], [dir="rtl"] *) {
border-right-width: 1px;
}
.rtl\:pr-5:where([dir="rtl"], [dir="rtl"] *) {
padding-right: 1.25rem;
}
@media print { @media print {
.print\:hidden { .print\:hidden {
display: none; display: none;

View File

@ -109,14 +109,13 @@ body:has(#menu-controller:checked) {
/* Fix long tables breaking out of article on mobile */ /* Fix long tables breaking out of article on mobile */
table { table {
display: block; @apply block overflow-auto md:table;
overflow: auto;
} }
/* Fix long inline code sections breaking out of article on mobile */ /* Fix long inline code sections breaking out of article on mobile */
code { code {
word-wrap: break-word; /* All browsers since IE 5.5+ */ word-wrap: break-word; /* All browsers since IE 5.5+ */
overflow-wrap: break-word; /* Renamed property in CSS3 draft spec */ @apply break-words;
} }
/* -- Chroma Highlight -- */ /* -- Chroma Highlight -- */