mmshaban commited on
Commit
beffd75
·
verified ·
1 Parent(s): 9cefb1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -14
app.py CHANGED
@@ -68,22 +68,24 @@ view = gr.Interface(
68
  )
69
  view.css = """
70
  body {
71
- margin: 0; /* Remove default body margins */
72
- padding: 0; /* Remove default body padding */
 
73
  }
74
 
75
  #output-box {
76
- font-size: 40px; /* Adjust font size as needed */
77
- line-height: 2; /* Optional: Adjust line height for readability */
78
- border: 2px solid #ccc; /* Add a border around the box */
79
- border-radius: 8px; /* Optional: Round the corners */
80
- padding: 15px; /* Add some padding inside the box */
81
- background-color: #f9f9f9; /* Light background for the box */
82
- box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
83
- width: calc(100% - 30px); /* Ensure it spans full width with slight padding */
84
- max-width: 600px; /* Limit the max width for readability */
85
- margin: auto; /* Center align the box */
 
 
 
86
  }
87
  """
88
-
89
- view.launch()
 
68
  )
69
  view.css = """
70
  body {
71
+ margin: 0;
72
+ padding: 0;
73
+ overflow-x: hidden; /* Prevent horizontal scrolling */
74
  }
75
 
76
  #output-box {
77
+ font-size: 40px;
78
+ line-height: 2;
79
+ border: 2px solid #ccc;
80
+ border-radius: 8px;
81
+ padding: 15px;
82
+ background-color: #f9f9f9;
83
+ box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
84
+ width: calc(100% - 30px);
85
+ max-width: 600px;
86
+ margin: auto;
87
+ box-sizing: border-box; /* Ensure padding is included in width calculations */
88
+ overflow-wrap: break-word; /* Prevent content from overflowing horizontally */
89
+ word-wrap: break-word; /* Support for older browsers */
90
  }
91
  """