iOS: sheet modal misses top margin when having toolbar
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript
- Lĩnh vực
- frontend, mobile-dev
Hướng nghiên cứu
Bắt đầu bằng cách tái tạo markup bottom-sheet được cung cấp trong một ứng dụng Framework7 mới bằng chế độ kiểu iOS, sau đó so sánh với cách hiển thị Android/MD. Kiểm tra style của sheet modal và toolbar chịu trách nhiệm cho khoảng cách phía trên. Được xem là hoàn thành khi toolbar có margin phía trên như mong đợi ở chế độ iOS mà không gây hồi quy cho theme Android.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Framework7 version: 9.0.3
- Platform and Target: Chrome Browser, PWA/WebApp in iOS style mode
Describe the bug
When adding a bottom sheet with a toolbar at the top, the iOS layout misses a top margin, see the screenshot and code below.
To Reproduce
Steps to reproduce the behavior:
- Create a new Framework7 app
- Add a bottom sheet
- Add a toolbar
- See error on iOS theme
Expected behavior
I expect both themes to show toolbar properly.
Actual Behavior
While Android works fine, iOS theme shows missing top margin.
Screenshots
iOS theme:
MD theme:
Additional context
The HTML markup used is as follows:
<template>
<div class="sheet-modal height-auto">
<div class="toolbar">
<div class="toolbar-inner">
<div class="left margin-left-half">Neuen Ort erstellen</div>
<div class="right">
<a class="link" @click="${discardLocation}">Abbrechen</a>
</div>
</div>
</div>
<div class="sheet-modal-inner">
<div class="page-content">
<!-- <div class="block-title">Neuen Ort erstellen</div> -->
<form class="form-store-data" id="formLocationEdit">
<div class="list list-strong-ios list-dividers-ios inset-ios margin-top-half margin-bottom-half">
<ul>
<li class="item-content item-input item-input-with-info">
<div class="item-inner">
<div class="item-input-wrap">
<input type="text" placeholder="Hallen- oder Raum-Name" name="locName" required validate />
<span class="input-clear-button"></span>
<div class="item-input-info">Name des Ortes</div>
</div>
</div>
</li>
<li class="item-content item-input item-input-with-info">
<div class="item-inner">
<div class="item-input-wrap">
<input type="text" placeholder="Musterstr. 12" name="locStreet" required validate />
<span class="input-clear-button"></span>
<div class="item-input-info">Straße und Hausnummer</div>
</div>
</div>
</li>
</ul>
</div>
- Ngôn ngữ chính
- JavaScript
- Star
- 18.8k
- Fork
- 3.2k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của framework7io/framework7
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
framework7io/framework7#4365 · 1 bình luận ·
-
propsHistory Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
framework7io/framework7#4347 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
framework7io/framework7#4222 · 3 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
framework7io/framework7#4175 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
framework7io/framework7#3969 · 3 bình luận ·
Tất cả issue của framework7io/framework7
Issue tương tự
-
Update HugeIcons library Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
antfu-collective/icones#398 ·
-
ECmail.com Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
wesbos/burner-email-providers#554 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiantearth/stac-browser#1023 ·
-
HMR stops working Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
components-web-app/docs#92 ·