Skip to content

Conversation

@tuj
Copy link
Contributor

@tuj tuj commented Apr 14, 2025

Link to ticket

https://leantime.itkdev.dk/#/tickets/showTicket/4261

Description

Fixed preview spacing and added preview border.

Checklist

  • My code is covered by test cases.
  • My code passes our test (all our tests).
  • My code passes our static analysis suite.
  • My code passes our continuous integration process.

@tuj tuj added the bug Something isn't working label Apr 14, 2025
@tuj tuj requested a review from yepzdk April 14, 2025 05:16
@tuj tuj self-assigned this Apr 14, 2025
yepzdk
yepzdk previously approved these changes Apr 14, 2025
Copy link
Contributor

@yepzdk yepzdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A couple of comments to improve consistency.
But otherwise good work.

.remote-component-wrapper {
width: 100%;
height: 100%;
box-shadow: 0 0 1px #aaa;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you could consider user border here.
Otherwise consider using a shadow like in https://github.com/os2display/display-templates/blob/898d24d1ee6b63e8ff5c2caa99bfd02e02162cea/src/global-styles.css#L130

width: `${width}px`,
height: `${height}px`,
overflow: "hidden",
boxShadow: "0 0 1px #aaa",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe this should reuse the styling from

@tuj tuj merged commit 3902d0e into develop Apr 14, 2025
4 checks passed
@tuj tuj deleted the feature/preview-fixes2 branch April 14, 2025 16:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants