Travis Ralston
f51a6b6da4
Show file name and size on images on hover ( #6511 )
...
* Show simple file name and size on images/videos
Fixes https://github.com/vector-im/element-web/issues/18197
* i18n
* Fix bad merge
* Add hover state tracking
* Only show on timeline-like objects
* Match new design requirements
* Remove video support (deemed not needed)
* Colouring and sizing from design
* Include file name in lightbox
* Revert changes to videos since we don't need them
* i18n
* Iterate PR
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
4 years ago
Šimon Brandner
b2c0f57c4b
More prefers-reduced-motion friendliness
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
4 years ago
Šimon Brandner
499b470d07
Use CSS var in JS
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
4 years ago
Šimon Brandner
8e3be15365
Move animations into _animations
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
4 years ago
Šimon Brandner
2fd221bc18
Update animation speed
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
1b00b304bb
Give image view panel a loading animation
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
6a285bed5a
Make the buttons easier to hit
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Robin Townsend
17edfec3aa
Make it easier to pan images in the lightbox
...
Previously, if you were dragging an image and your cursor outpaced the
edge of the image as it was moving, panning would abruptly stop. This
moves a few of the lightbox event listeners one level up to the image
wrapper to ensure that all drag movements are detected, even if they
don't end over the image's current position.
Signed-off-by: Robin Townsend <robin@robin.town>
5 years ago
Ayush PS
b90a1de178
Merge branch 'develop' into err
5 years ago
Ayush PS
c843387043
Merge branch 'develop' into Bubble-bericht
5 years ago
Šimon Brandner
a1906be349
Initial code for dynamic minZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
dad7a22055
Initial code for dynamic minZoom
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
7f496c7bf5
Add comment: same on all themes
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
12a36d1a30
This is hopefully not true anymore
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
535ae086b4
Make sender bold
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
c96d2621a0
Set max-width and MIN_ZOOM
...
This might have some side effects but as far as I can tell they shouldn't be too problematic
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
8f6f9cd6fa
Remove some unnecessary CSS and set MIN_ZOOM to 95
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
9c313854d0
Increase defautl size
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
1955fff08c
CSS cleanup
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
dc283241aa
Remove wrapper
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
273753a42a
Fix hex formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
5a9e1a1482
Fix close icon
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
d58c17ff3b
Show grabbing cursor
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
25873c8759
Remove rounded border
5 years ago
Šimon Brandner
983895289c
Update info
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
81698a2714
Fix pointer-events
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
83e1a7a707
Add more button
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
a6bb203a4b
Redo icons
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
fafb8d43a3
Fix padding according to the design
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
6aac8f1735
Change padding a bit
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
899ce1f605
Partially fix overflow issues
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
ab79deb88f
Update the looks a bit more
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
768d268189
Fix css
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
6315c8ecef
Fix formatting
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
0dff150bb2
Fix some more sizing issues
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
cbfa6c5f94
Fix some sizing issues
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
6758734593
Remove panel element
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
7dd7aeffed
Remove imageBox
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
f9884b1cc7
Implement translation
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
8de019c054
Added some padding
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
be9b68a4dd
Use height and width properties for scaling again
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
ae25ff8216
Switched to scale
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
633221f012
Center image
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
b9f480a825
Remove flex property
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Šimon Brandner
8aabe1f330
Reorganized elements
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
5 years ago
Michael Telatynski
b6ac8cb28d
Revert "ImageView make clicking off it easier"
...
(cherry picked from commit 52e3c97f8c )
6 years ago
Michael Telatynski
52e3c97f8c
Revert "ImageView make clicking off it easier"
6 years ago
Michael Telatynski
4494c6cf2b
ImageView make clicking off it easier
...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
6 years ago
Jorik Schellekens
6cf9166c4a
Use variables for the rem values.
...
It's become obvious that these random floating points everywhere
are unwieldy. Now they're all in one place with some fairly logical
variable names which will help out in design->implementation phase.
6 years ago
Jorik Schellekens
da34e6241d
Make all 'font-size's and 'line-height's rem
...
Font size of the whole app would ideally be controlled by a single
value. This value is currently hard coded using the :root CSS selector.
It is the intention to make this value configurable within riot. In the
interim all font-sizes have been converted to rem by the simple process
of regex. Replacing px values with their equivalent rem values assuming
a font size of 15px and then rounded to three decimal places, which was
the base at the time of this transformation.
I'm expecting another commit cleaning up rem values but I thought it
best to leave that to review.
This commit doesn't address any scaling issues. I thought it better to
land this unwieldy, mechanical, invisible change before the others
otherwise the pr would be impossible to review thoroughly.
6 years ago