diff --git a/changelog.d/minor.fix b/changelog.d/minor.fix index 420836364..69d7b11fe 100644 --- a/changelog.d/minor.fix +++ b/changelog.d/minor.fix @@ -9,4 +9,3 @@ second language input not having header post form's bottom left buttons not showing their toggled state some font overrides not working popovers opening outside of window's boundaries -occasional blank page when showing new posts diff --git a/src/App.scss b/src/App.scss index 41fea782b..f556a7d9d 100644 --- a/src/App.scss +++ b/src/App.scss @@ -50,7 +50,7 @@ body { // have a cursor/pointer to operate them @media (any-pointer: fine) { * { - scrollbar-color: var(--text) transparent; + scrollbar-color: var(--fg) transparent; &::-webkit-scrollbar { background: transparent; @@ -130,7 +130,7 @@ body { } // Body should have background to scrollbar otherwise it will use white (body color?) html { - scrollbar-color: var(--text) var(--wallpaper); + scrollbar-color: var(--fg) var(--wallpaper); background: var(--wallpaper); } } @@ -815,11 +815,9 @@ option { align-items: baseline; line-height: 1.5; - p, span { display: block; flex: 1 1 auto; - margin: 0; } .dismiss { diff --git a/src/components/attachment/attachment.js b/src/components/attachment/attachment.js index 57a969c2a..fbe77a687 100644 --- a/src/components/attachment/attachment.js +++ b/src/components/attachment/attachment.js @@ -4,7 +4,6 @@ import nsfwImage from '../../assets/nsfw.png' import Flash from '../flash/flash.vue' import StillImage from '../still-image/still-image.vue' import VideoAttachment from '../video_attachment/video_attachment.vue' -import Popover from '../popover/popover.vue' import { useInstanceStore } from 'src/stores/instance.js' import { useInstanceCapabilitiesStore } from 'src/stores/instance_capabilities.js' @@ -66,13 +65,13 @@ const Attachment = { modalOpen: false, showHidden: false, flashLoaded: false, + showDescription: false, } }, components: { Flash, StillImage, VideoAttachment, - Popover, }, computed: { classNames() { @@ -181,6 +180,9 @@ const Attachment = { setFlashLoaded(event) { this.flashLoaded = event }, + toggleDescription() { + this.showDescription = !this.showDescription + }, toggleHidden(event) { if ( this.mergedConfig.useOneClickNsfw && diff --git a/src/components/attachment/attachment.scss b/src/components/attachment/attachment.scss index 0a1f9f5ee..97515eb32 100644 --- a/src/components/attachment/attachment.scss +++ b/src/components/attachment/attachment.scss @@ -134,7 +134,7 @@ width: 2em; height: 2em; margin-left: 0.5em; - font-size: 1em; + font-size: 1.25em; } } @@ -265,25 +265,3 @@ } } } - -.description-popover { - padding: 1em; - width: 50ch; - overflow: hidden; - - summary { - display: inline-block; - margin-bottom: 0.5em; - font-weight: bold; - pointer-events: none; - } - - span { - display: block; - overflow-y: auto; - max-height: 10.5em; - text-wrap: pretty; - line-height: 1.5; - white-space: pre-wrap; - } -} diff --git a/src/components/attachment/attachment.vue b/src/components/attachment/attachment.vue index ca5f395a6..0db86ff8a 100644 --- a/src/components/attachment/attachment.vue +++ b/src/components/attachment/attachment.vue @@ -30,16 +30,21 @@
-