mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-21 05:58:23 +02:00
Enable phone mode icon for all users to test features
Modify the usePhoneMode hook to always return true for `canUsePhoneMode`, ensuring the phone mode icon is visible on all devices for testing purposes. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 95e8aab4-f39f-4b48-aa57-a759ec15ba3d Replit-Commit-Checkpoint-Type: intermediate_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/95e8aab4-f39f-4b48-aa57-a759ec15ba3d/0iFumsU
This commit is contained in:
1 parent
e4892c93eb
commit
d6afacef31
3 files changed
+10
-2
No files matched your search
@@ -15,10 +15,18 @@ run = ["npm", "run", "start"]
|
|||||||
localPort = 5000
|
localPort = 5000
|
||||||
externalPort = 80
|
externalPort = 80
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 38451
|
||||||
|
externalPort = 3002
|
||||||
|
|
||||||
[[ports]]
|
[[ports]]
|
||||||
localPort = 41343
|
localPort = 41343
|
||||||
externalPort = 3001
|
externalPort = 3001
|
||||||
|
|
||||||
|
[[ports]]
|
||||||
|
localPort = 45213
|
||||||
|
externalPort = 3000
|
||||||
|
|
||||||
[workflows]
|
[workflows]
|
||||||
runButton = "Project"
|
runButton = "Project"
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 222 KiB |
@@ -11,8 +11,8 @@ export interface PhoneModeConfig {
|
|||||||
export function usePhoneMode(): PhoneModeConfig {
|
export function usePhoneMode(): PhoneModeConfig {
|
||||||
const { isMobile, dimensions } = useScreenSize()
|
const { isMobile, dimensions } = useScreenSize()
|
||||||
|
|
||||||
// Déterminer si l'appareil peut bénéficier du mode téléphone
|
// L'icône de mode téléphone est toujours disponible pour permettre aux utilisateurs de tester
|
||||||
const canUsePhoneMode = isMobile || dimensions.width <= 480
|
const canUsePhoneMode = true
|
||||||
|
|
||||||
// Auto-suggestion pour très petits écrans (< 400px)
|
// Auto-suggestion pour très petits écrans (< 400px)
|
||||||
const autoSuggestPhoneMode = dimensions.width < 400
|
const autoSuggestPhoneMode = dimensions.width < 400
|
||||||
|
|||||||
Reference in new issue
Block a user