summaryrefslogtreecommitdiffhomepage
path: root/packages/web/src/components/diffview.module.css
diff options
context:
space:
mode:
authorJay V <[email protected]>2025-06-26 13:06:37 -0400
committerJay V <[email protected]>2025-06-26 17:21:53 -0400
commit008af1815647cf2cfb465127641d20e5cb93643b (patch)
tree980654434e25674c3e70c0b05cf509351818939d /packages/web/src/components/diffview.module.css
parentab23167f80fb1e930e399d70a4783eacf6580c87 (diff)
downloadopencode-008af1815647cf2cfb465127641d20e5cb93643b.tar.gz
opencode-008af1815647cf2cfb465127641d20e5cb93643b.zip
docs: share page responsive diff
Diffstat (limited to 'packages/web/src/components/diffview.module.css')
-rw-r--r--packages/web/src/components/diffview.module.css33
1 files changed, 16 insertions, 17 deletions
diff --git a/packages/web/src/components/diffview.module.css b/packages/web/src/components/diffview.module.css
index b3f61ac02..a748c5d02 100644
--- a/packages/web/src/components/diffview.module.css
+++ b/packages/web/src/components/diffview.module.css
@@ -6,6 +6,19 @@
border-radius: 0.25rem;
}
+.desktopView {
+ display: block;
+}
+
+.mobileView {
+ display: none;
+}
+
+.mobileBlock {
+ display: flex;
+ flex-direction: column;
+}
+
.row {
display: grid;
grid-template-columns: 1fr 1fr;
@@ -98,25 +111,11 @@
}
@media (max-width: 40rem) {
- .row {
- grid-template-columns: 1fr;
- }
-
- .afterColumn {
+ .desktopView {
display: none;
}
- .beforeColumn {
- border-right: none;
- }
-
- [data-section="cell"] {
- &[data-display-mobile="true"] {
- display: flex;
- }
-
- &[data-display-mobile="false"] {
- display: none;
- }
+ .mobileView {
+ display: block;
}
}