Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix safe area styling issues with card and card contents #2801

Merged
merged 1 commit into from
Oct 6, 2024

Conversation

florian-h05
Copy link
Contributor

@florian-h05 florian-h05 commented Oct 6, 2024

This fixes ugly styling issues with too large margin/padding on iOS devices due to safe areas getting applied to children of f7-card, even though f7-card already respects the safe areas.

This removes the space marked in the following screenshots:

image
image

@florian-h05 florian-h05 requested a review from ghys as a code owner October 6, 2024 19:07
@florian-h05 florian-h05 added bug Something isn't working main ui Main UI labels Oct 6, 2024
Copy link

relativeci bot commented Oct 6, 2024

#2360 Bundle Size — 10.84MiB (~+0.01%).

f477088(current) vs 0a3fb92 main#2350(baseline)

Warning

Bundle contains 2 duplicate packages – View duplicate packages

Bundle metrics  Change 4 changes Regression 2 regressions
                 Current
#2360
     Baseline
#2350
Regression  Initial JS 1.89MiB(~+0.01%) 1.89MiB
Regression  Initial CSS 577.02KiB(+0.04%) 576.8KiB
Change  Cache Invalidation 24.09% 22.77%
No change  Chunks 226 226
No change  Assets 249 249
Change  Modules 2919(+0.03%) 2918
No change  Duplicate Modules 149 149
No change  Duplicate Code 1.8% 1.8%
No change  Packages 96 96
No change  Duplicate Packages 2 2
Bundle size by type  Change 2 changes Regression 2 regressions
                 Current
#2360
     Baseline
#2350
Regression  JS 9.05MiB (~+0.01%) 9.05MiB
Regression  CSS 863.79KiB (+0.03%) 863.56KiB
No change  Fonts 526.1KiB 526.1KiB
No change  Media 295.6KiB 295.6KiB
No change  IMG 140.74KiB 140.74KiB
No change  HTML 1.38KiB 1.38KiB
No change  Other 871B 871B

Bundle analysis reportBranch florian-h05:safe-area-issuesProject dashboard


Generated by RelativeCIDocumentationReport issue

This fixes ugly styling issues with too large margin/padding on iOS devices due to safe areas getting applied to children of f7-card,
even though f7-card already respects the safe areas.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
@florian-h05 florian-h05 added this to the 4.3 milestone Oct 6, 2024
@florian-h05 florian-h05 merged commit 0767c91 into openhab:main Oct 6, 2024
8 checks passed
@florian-h05 florian-h05 deleted the safe-area-issues branch October 6, 2024 19:28
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Oct 6, 2024
Regression from openhab#2801.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Oct 6, 2024
Regression from openhab#2801.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
florian-h05 added a commit that referenced this pull request Oct 6, 2024
Regression from #2801.

During testing, it looked good, but in production it introduced some
styling issues.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Oct 7, 2024
Regression from openhab#2801.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Oct 7, 2024
Regression from openhab#2801.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
florian-h05 added a commit to florian-h05/openhab-webui that referenced this pull request Oct 9, 2024
Regression from openhab#2801.

This fixes difficulties with overwriting that style in widgets.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
florian-h05 added a commit that referenced this pull request Oct 9, 2024
…2804)

Minor regression from #2801.

This fixes difficulties with overwriting that style in widgets.

Signed-off-by: Florian Hotze <dev@florianhotze.com>
florian-h05 added a commit to florian-h05/openhab-conf that referenced this pull request Oct 9, 2024
…rientation"

This reverts commit 36c2479.

The root problem has been fixed in openhab/openhab-webui#2801, so this is no longer needed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working main ui Main UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant