Skip to content

Commit 6032c2b

Browse files
committed
fix(frontend): Scrolling Issue in Safari for Top and Bottom Bars
fix #10977
1 parent 13870c6 commit 6032c2b

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

packages/frontend/src/ui/deck.vue

+21
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,27 @@ async function deleteProfile() {
254254
}
255255
</script>
256256

257+
<style>
258+
html,
259+
body {
260+
width: 100%;
261+
height: 100%;
262+
overflow: clip;
263+
position: fixed;
264+
top: 0;
265+
left: 0;
266+
}
267+
268+
#misskey_app {
269+
width: 100%;
270+
height: 100%;
271+
overflow: clip;
272+
position: absolute;
273+
top: 0;
274+
left: 0;
275+
}
276+
</style>
277+
257278
<style lang="scss" module>
258279
.transition_menuDrawerBg_enterActive,
259280
.transition_menuDrawerBg_leaveActive {

packages/frontend/src/ui/universal.vue

+21
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,27 @@ watch($$(navFooter), () => {
215215
});
216216
</script>
217217

218+
<style>
219+
html,
220+
body {
221+
width: 100%;
222+
height: 100%;
223+
overflow: clip;
224+
position: fixed;
225+
top: 0;
226+
left: 0;
227+
}
228+
229+
#misskey_app {
230+
width: 100%;
231+
height: 100%;
232+
overflow: clip;
233+
position: absolute;
234+
top: 0;
235+
left: 0;
236+
}
237+
</style>
238+
218239
<style lang="scss" module>
219240
$ui-font-size: 1em; // TODO: どこかに集約したい
220241
$widgets-hide-threshold: 1090px;

0 commit comments

Comments
 (0)